@knowledge-stack/ksapi 1.57.0 → 1.58.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 +4 -2
- package/README.md +9 -6
- package/dist/apis/WorkflowsApi.d.ts +144 -59
- package/dist/apis/WorkflowsApi.js +131 -49
- package/dist/esm/apis/WorkflowsApi.d.ts +144 -59
- package/dist/esm/apis/WorkflowsApi.js +132 -50
- package/dist/esm/models/TemporalWorkflowStatusResponse.d.ts +83 -0
- package/dist/esm/models/TemporalWorkflowStatusResponse.js +66 -0
- package/dist/esm/models/WorkflowActionResponse.d.ts +1 -1
- package/dist/esm/models/WorkflowCancelResponse.d.ts +53 -0
- package/dist/esm/models/WorkflowCancelResponse.js +48 -0
- package/dist/esm/models/index.d.ts +2 -1
- package/dist/esm/models/index.js +2 -1
- package/dist/models/TemporalWorkflowStatusResponse.d.ts +83 -0
- package/dist/models/TemporalWorkflowStatusResponse.js +74 -0
- package/dist/models/WorkflowActionResponse.d.ts +1 -1
- package/dist/models/WorkflowCancelResponse.d.ts +53 -0
- package/dist/models/WorkflowCancelResponse.js +56 -0
- package/dist/models/index.d.ts +2 -1
- package/dist/models/index.js +2 -1
- package/docs/TemporalWorkflowStatusResponse.md +47 -0
- package/docs/WorkflowActionResponse.md +1 -1
- package/docs/{WorkflowAction.md → WorkflowCancelResponse.md} +9 -5
- package/docs/WorkflowsApi.md +183 -36
- package/package.json +1 -1
- package/src/apis/WorkflowsApi.ts +249 -90
- package/src/models/TemporalWorkflowStatusResponse.ts +136 -0
- package/src/models/WorkflowActionResponse.ts +1 -1
- package/src/models/WorkflowCancelResponse.ts +92 -0
- package/src/models/index.ts +2 -1
- package/dist/esm/models/WorkflowAction.d.ts +0 -25
- package/dist/esm/models/WorkflowAction.js +0 -43
- package/dist/models/WorkflowAction.d.ts +0 -25
- package/dist/models/WorkflowAction.js +0 -51
- package/src/models/WorkflowAction.ts +0 -53
|
@@ -21,18 +21,18 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
23
|
import * as runtime from '../runtime';
|
|
24
|
-
import { PaginatedResponseWorkflowSummaryResponseFromJSON, WorkflowActionResponseFromJSON, WorkflowDetailResponseFromJSON, } from '../models/index';
|
|
24
|
+
import { PaginatedResponseWorkflowSummaryResponseFromJSON, TemporalWorkflowStatusResponseFromJSON, WorkflowActionResponseFromJSON, WorkflowCancelResponseFromJSON, WorkflowDetailResponseFromJSON, } from '../models/index';
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
28
28
|
export class WorkflowsApi extends runtime.BaseAPI {
|
|
29
29
|
/**
|
|
30
|
-
* Creates request options for
|
|
30
|
+
* Creates request options for cancelTemporalWorkflow without sending the request
|
|
31
31
|
*/
|
|
32
|
-
|
|
32
|
+
cancelTemporalWorkflowRequestOpts(requestParameters) {
|
|
33
33
|
return __awaiter(this, void 0, void 0, function* () {
|
|
34
34
|
if (requestParameters['workflowId'] == null) {
|
|
35
|
-
throw new runtime.RequiredError('workflowId', 'Required parameter "workflowId" was null or undefined when calling
|
|
35
|
+
throw new runtime.RequiredError('workflowId', 'Required parameter "workflowId" was null or undefined when calling cancelTemporalWorkflow().');
|
|
36
36
|
}
|
|
37
37
|
const queryParameters = {};
|
|
38
38
|
const headerParameters = {};
|
|
@@ -43,50 +43,92 @@ export class WorkflowsApi extends runtime.BaseAPI {
|
|
|
43
43
|
urlPath = urlPath.replace(`{${"workflow_id"}}`, encodeURIComponent(String(requestParameters['workflowId'])));
|
|
44
44
|
return {
|
|
45
45
|
path: urlPath,
|
|
46
|
-
method: '
|
|
46
|
+
method: 'DELETE',
|
|
47
47
|
headers: headerParameters,
|
|
48
48
|
query: queryParameters,
|
|
49
49
|
};
|
|
50
50
|
});
|
|
51
51
|
}
|
|
52
52
|
/**
|
|
53
|
-
*
|
|
54
|
-
*
|
|
53
|
+
* Cancel any Temporal workflow owned by the caller\'s tenant. No status guard — this is a thin Temporal wrapper. Cancelling an already-terminal workflow is a no-op on the Temporal side.
|
|
54
|
+
* Cancel Temporal Workflow Handler
|
|
55
55
|
*/
|
|
56
|
-
|
|
56
|
+
cancelTemporalWorkflowRaw(requestParameters, initOverrides) {
|
|
57
57
|
return __awaiter(this, void 0, void 0, function* () {
|
|
58
|
-
const requestOptions = yield this.
|
|
58
|
+
const requestOptions = yield this.cancelTemporalWorkflowRequestOpts(requestParameters);
|
|
59
59
|
const response = yield this.request(requestOptions, initOverrides);
|
|
60
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
60
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => WorkflowCancelResponseFromJSON(jsonValue));
|
|
61
61
|
});
|
|
62
62
|
}
|
|
63
63
|
/**
|
|
64
|
-
*
|
|
65
|
-
*
|
|
64
|
+
* Cancel any Temporal workflow owned by the caller\'s tenant. No status guard — this is a thin Temporal wrapper. Cancelling an already-terminal workflow is a no-op on the Temporal side.
|
|
65
|
+
* Cancel Temporal Workflow Handler
|
|
66
66
|
*/
|
|
67
|
-
|
|
67
|
+
cancelTemporalWorkflow(requestParameters, initOverrides) {
|
|
68
68
|
return __awaiter(this, void 0, void 0, function* () {
|
|
69
|
-
const response = yield this.
|
|
69
|
+
const response = yield this.cancelTemporalWorkflowRaw(requestParameters, initOverrides);
|
|
70
70
|
return yield response.value();
|
|
71
71
|
});
|
|
72
72
|
}
|
|
73
73
|
/**
|
|
74
|
-
* Creates request options for
|
|
74
|
+
* Creates request options for dvWorkflowRerun without sending the request
|
|
75
75
|
*/
|
|
76
|
-
|
|
76
|
+
dvWorkflowRerunRequestOpts(requestParameters) {
|
|
77
77
|
return __awaiter(this, void 0, void 0, function* () {
|
|
78
|
+
if (requestParameters['workflowId'] == null) {
|
|
79
|
+
throw new runtime.RequiredError('workflowId', 'Required parameter "workflowId" was null or undefined when calling dvWorkflowRerun().');
|
|
80
|
+
}
|
|
78
81
|
const queryParameters = {};
|
|
79
|
-
|
|
80
|
-
|
|
82
|
+
const headerParameters = {};
|
|
83
|
+
if (requestParameters['authorization'] != null) {
|
|
84
|
+
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
81
85
|
}
|
|
82
|
-
|
|
83
|
-
|
|
86
|
+
let urlPath = `/v1/workflows/document_versions/{workflow_id}`;
|
|
87
|
+
urlPath = urlPath.replace(`{${"workflow_id"}}`, encodeURIComponent(String(requestParameters['workflowId'])));
|
|
88
|
+
return {
|
|
89
|
+
path: urlPath,
|
|
90
|
+
method: 'POST',
|
|
91
|
+
headers: headerParameters,
|
|
92
|
+
query: queryParameters,
|
|
93
|
+
};
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Rerun a workflow. USER role requires ``can_write`` on the document path.
|
|
98
|
+
* Dv Workflow Rerun Handler
|
|
99
|
+
*/
|
|
100
|
+
dvWorkflowRerunRaw(requestParameters, initOverrides) {
|
|
101
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
102
|
+
const requestOptions = yield this.dvWorkflowRerunRequestOpts(requestParameters);
|
|
103
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
104
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => WorkflowActionResponseFromJSON(jsonValue));
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* Rerun a workflow. USER role requires ``can_write`` on the document path.
|
|
109
|
+
* Dv Workflow Rerun Handler
|
|
110
|
+
*/
|
|
111
|
+
dvWorkflowRerun(requestParameters, initOverrides) {
|
|
112
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
113
|
+
const response = yield this.dvWorkflowRerunRaw(requestParameters, initOverrides);
|
|
114
|
+
return yield response.value();
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Creates request options for getDvWorkflow without sending the request
|
|
119
|
+
*/
|
|
120
|
+
getDvWorkflowRequestOpts(requestParameters) {
|
|
121
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
122
|
+
if (requestParameters['workflowId'] == null) {
|
|
123
|
+
throw new runtime.RequiredError('workflowId', 'Required parameter "workflowId" was null or undefined when calling getDvWorkflow().');
|
|
84
124
|
}
|
|
125
|
+
const queryParameters = {};
|
|
85
126
|
const headerParameters = {};
|
|
86
127
|
if (requestParameters['authorization'] != null) {
|
|
87
128
|
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
88
129
|
}
|
|
89
|
-
let urlPath = `/v1/workflows`;
|
|
130
|
+
let urlPath = `/v1/workflows/document_versions/{workflow_id}`;
|
|
131
|
+
urlPath = urlPath.replace(`{${"workflow_id"}}`, encodeURIComponent(String(requestParameters['workflowId'])));
|
|
90
132
|
return {
|
|
91
133
|
path: urlPath,
|
|
92
134
|
method: 'GET',
|
|
@@ -96,41 +138,35 @@ export class WorkflowsApi extends runtime.BaseAPI {
|
|
|
96
138
|
});
|
|
97
139
|
}
|
|
98
140
|
/**
|
|
99
|
-
*
|
|
100
|
-
*
|
|
141
|
+
* Get single workflow detail with live Temporal status.
|
|
142
|
+
* Get Dv Workflow Handler
|
|
101
143
|
*/
|
|
102
|
-
|
|
144
|
+
getDvWorkflowRaw(requestParameters, initOverrides) {
|
|
103
145
|
return __awaiter(this, void 0, void 0, function* () {
|
|
104
|
-
const requestOptions = yield this.
|
|
146
|
+
const requestOptions = yield this.getDvWorkflowRequestOpts(requestParameters);
|
|
105
147
|
const response = yield this.request(requestOptions, initOverrides);
|
|
106
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
148
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => WorkflowDetailResponseFromJSON(jsonValue));
|
|
107
149
|
});
|
|
108
150
|
}
|
|
109
151
|
/**
|
|
110
|
-
*
|
|
111
|
-
*
|
|
152
|
+
* Get single workflow detail with live Temporal status.
|
|
153
|
+
* Get Dv Workflow Handler
|
|
112
154
|
*/
|
|
113
|
-
|
|
114
|
-
return __awaiter(this,
|
|
115
|
-
const response = yield this.
|
|
155
|
+
getDvWorkflow(requestParameters, initOverrides) {
|
|
156
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
157
|
+
const response = yield this.getDvWorkflowRaw(requestParameters, initOverrides);
|
|
116
158
|
return yield response.value();
|
|
117
159
|
});
|
|
118
160
|
}
|
|
119
161
|
/**
|
|
120
|
-
* Creates request options for
|
|
162
|
+
* Creates request options for getTemporalWorkflowStatus without sending the request
|
|
121
163
|
*/
|
|
122
|
-
|
|
164
|
+
getTemporalWorkflowStatusRequestOpts(requestParameters) {
|
|
123
165
|
return __awaiter(this, void 0, void 0, function* () {
|
|
124
166
|
if (requestParameters['workflowId'] == null) {
|
|
125
|
-
throw new runtime.RequiredError('workflowId', 'Required parameter "workflowId" was null or undefined when calling
|
|
126
|
-
}
|
|
127
|
-
if (requestParameters['action'] == null) {
|
|
128
|
-
throw new runtime.RequiredError('action', 'Required parameter "action" was null or undefined when calling workflowAction().');
|
|
167
|
+
throw new runtime.RequiredError('workflowId', 'Required parameter "workflowId" was null or undefined when calling getTemporalWorkflowStatus().');
|
|
129
168
|
}
|
|
130
169
|
const queryParameters = {};
|
|
131
|
-
if (requestParameters['action'] != null) {
|
|
132
|
-
queryParameters['action'] = requestParameters['action'];
|
|
133
|
-
}
|
|
134
170
|
const headerParameters = {};
|
|
135
171
|
if (requestParameters['authorization'] != null) {
|
|
136
172
|
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
@@ -139,30 +175,76 @@ export class WorkflowsApi extends runtime.BaseAPI {
|
|
|
139
175
|
urlPath = urlPath.replace(`{${"workflow_id"}}`, encodeURIComponent(String(requestParameters['workflowId'])));
|
|
140
176
|
return {
|
|
141
177
|
path: urlPath,
|
|
142
|
-
method: '
|
|
178
|
+
method: 'GET',
|
|
143
179
|
headers: headerParameters,
|
|
144
180
|
query: queryParameters,
|
|
145
181
|
};
|
|
146
182
|
});
|
|
147
183
|
}
|
|
148
184
|
/**
|
|
149
|
-
*
|
|
150
|
-
* Workflow
|
|
185
|
+
* Get live Temporal status for any workflow owned by the caller\'s tenant.
|
|
186
|
+
* Get Temporal Workflow Status Handler
|
|
151
187
|
*/
|
|
152
|
-
|
|
188
|
+
getTemporalWorkflowStatusRaw(requestParameters, initOverrides) {
|
|
153
189
|
return __awaiter(this, void 0, void 0, function* () {
|
|
154
|
-
const requestOptions = yield this.
|
|
190
|
+
const requestOptions = yield this.getTemporalWorkflowStatusRequestOpts(requestParameters);
|
|
155
191
|
const response = yield this.request(requestOptions, initOverrides);
|
|
156
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
192
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => TemporalWorkflowStatusResponseFromJSON(jsonValue));
|
|
193
|
+
});
|
|
194
|
+
}
|
|
195
|
+
/**
|
|
196
|
+
* Get live Temporal status for any workflow owned by the caller\'s tenant.
|
|
197
|
+
* Get Temporal Workflow Status Handler
|
|
198
|
+
*/
|
|
199
|
+
getTemporalWorkflowStatus(requestParameters, initOverrides) {
|
|
200
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
201
|
+
const response = yield this.getTemporalWorkflowStatusRaw(requestParameters, initOverrides);
|
|
202
|
+
return yield response.value();
|
|
157
203
|
});
|
|
158
204
|
}
|
|
159
205
|
/**
|
|
160
|
-
*
|
|
161
|
-
* Workflow Action Handler
|
|
206
|
+
* Creates request options for listDvWorkflows without sending the request
|
|
162
207
|
*/
|
|
163
|
-
|
|
208
|
+
listDvWorkflowsRequestOpts(requestParameters) {
|
|
164
209
|
return __awaiter(this, void 0, void 0, function* () {
|
|
165
|
-
const
|
|
210
|
+
const queryParameters = {};
|
|
211
|
+
if (requestParameters['limit'] != null) {
|
|
212
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
213
|
+
}
|
|
214
|
+
if (requestParameters['offset'] != null) {
|
|
215
|
+
queryParameters['offset'] = requestParameters['offset'];
|
|
216
|
+
}
|
|
217
|
+
const headerParameters = {};
|
|
218
|
+
if (requestParameters['authorization'] != null) {
|
|
219
|
+
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
220
|
+
}
|
|
221
|
+
let urlPath = `/v1/workflows/document_versions`;
|
|
222
|
+
return {
|
|
223
|
+
path: urlPath,
|
|
224
|
+
method: 'GET',
|
|
225
|
+
headers: headerParameters,
|
|
226
|
+
query: queryParameters,
|
|
227
|
+
};
|
|
228
|
+
});
|
|
229
|
+
}
|
|
230
|
+
/**
|
|
231
|
+
* List all workflows for the current tenant (paginated, DB-backed). ADMIN/OWNER see all workflows; USER sees only those under permitted paths.
|
|
232
|
+
* List Dv Workflows Handler
|
|
233
|
+
*/
|
|
234
|
+
listDvWorkflowsRaw(requestParameters, initOverrides) {
|
|
235
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
236
|
+
const requestOptions = yield this.listDvWorkflowsRequestOpts(requestParameters);
|
|
237
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
238
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedResponseWorkflowSummaryResponseFromJSON(jsonValue));
|
|
239
|
+
});
|
|
240
|
+
}
|
|
241
|
+
/**
|
|
242
|
+
* List all workflows for the current tenant (paginated, DB-backed). ADMIN/OWNER see all workflows; USER sees only those under permitted paths.
|
|
243
|
+
* List Dv Workflows Handler
|
|
244
|
+
*/
|
|
245
|
+
listDvWorkflows() {
|
|
246
|
+
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
247
|
+
const response = yield this.listDvWorkflowsRaw(requestParameters, initOverrides);
|
|
166
248
|
return yield response.value();
|
|
167
249
|
});
|
|
168
250
|
}
|
|
@@ -0,0 +1,83 @@
|
|
|
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
|
+
* Generic Temporal workflow status — no DB interaction.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface TemporalWorkflowStatusResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface TemporalWorkflowStatusResponse {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof TemporalWorkflowStatusResponse
|
|
22
|
+
*/
|
|
23
|
+
workflowId: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof TemporalWorkflowStatusResponse
|
|
28
|
+
*/
|
|
29
|
+
temporalStatus: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof TemporalWorkflowStatusResponse
|
|
34
|
+
*/
|
|
35
|
+
workflowType: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof TemporalWorkflowStatusResponse
|
|
40
|
+
*/
|
|
41
|
+
taskQueue: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {Date}
|
|
45
|
+
* @memberof TemporalWorkflowStatusResponse
|
|
46
|
+
*/
|
|
47
|
+
startTime: Date;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {Date}
|
|
51
|
+
* @memberof TemporalWorkflowStatusResponse
|
|
52
|
+
*/
|
|
53
|
+
closeTime?: Date | null;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof TemporalWorkflowStatusResponse
|
|
58
|
+
*/
|
|
59
|
+
runId: string;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Check if a given object implements the TemporalWorkflowStatusResponse interface.
|
|
63
|
+
*/
|
|
64
|
+
export declare function instanceOfTemporalWorkflowStatusResponse(value: object): value is TemporalWorkflowStatusResponse;
|
|
65
|
+
export declare function TemporalWorkflowStatusResponseFromJSON(json: any): TemporalWorkflowStatusResponse;
|
|
66
|
+
export declare function TemporalWorkflowStatusResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TemporalWorkflowStatusResponse;
|
|
67
|
+
export declare function TemporalWorkflowStatusResponseToJSON(json: any): TemporalWorkflowStatusResponse;
|
|
68
|
+
export declare function TemporalWorkflowStatusResponseToJSONTyped(value?: TemporalWorkflowStatusResponse | null, ignoreDiscriminator?: boolean): any;
|
|
69
|
+
export declare const TemporalWorkflowStatusResponsePropertyValidationAttributesMap: {
|
|
70
|
+
[property: string]: {
|
|
71
|
+
maxLength?: number;
|
|
72
|
+
minLength?: number;
|
|
73
|
+
pattern?: string;
|
|
74
|
+
maximum?: number;
|
|
75
|
+
exclusiveMaximum?: boolean;
|
|
76
|
+
minimum?: number;
|
|
77
|
+
exclusiveMinimum?: boolean;
|
|
78
|
+
multipleOf?: number;
|
|
79
|
+
maxItems?: number;
|
|
80
|
+
minItems?: number;
|
|
81
|
+
uniqueItems?: boolean;
|
|
82
|
+
};
|
|
83
|
+
};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Knowledge Stack API
|
|
5
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the TemporalWorkflowStatusResponse interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfTemporalWorkflowStatusResponse(value) {
|
|
18
|
+
if (!('workflowId' in value) || value['workflowId'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('temporalStatus' in value) || value['temporalStatus'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('workflowType' in value) || value['workflowType'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('taskQueue' in value) || value['taskQueue'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('startTime' in value) || value['startTime'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('runId' in value) || value['runId'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
export function TemporalWorkflowStatusResponseFromJSON(json) {
|
|
33
|
+
return TemporalWorkflowStatusResponseFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
export function TemporalWorkflowStatusResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'workflowId': json['workflow_id'],
|
|
41
|
+
'temporalStatus': json['temporal_status'],
|
|
42
|
+
'workflowType': json['workflow_type'],
|
|
43
|
+
'taskQueue': json['task_queue'],
|
|
44
|
+
'startTime': (new Date(json['start_time'])),
|
|
45
|
+
'closeTime': json['close_time'] == null ? undefined : (new Date(json['close_time'])),
|
|
46
|
+
'runId': json['run_id'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
export function TemporalWorkflowStatusResponseToJSON(json) {
|
|
50
|
+
return TemporalWorkflowStatusResponseToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
export function TemporalWorkflowStatusResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'workflow_id': value['workflowId'],
|
|
58
|
+
'temporal_status': value['temporalStatus'],
|
|
59
|
+
'workflow_type': value['workflowType'],
|
|
60
|
+
'task_queue': value['taskQueue'],
|
|
61
|
+
'start_time': value['startTime'].toISOString(),
|
|
62
|
+
'close_time': value['closeTime'] == null ? value['closeTime'] : value['closeTime'].toISOString(),
|
|
63
|
+
'run_id': value['runId'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
export const TemporalWorkflowStatusResponsePropertyValidationAttributesMap = {};
|
|
@@ -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
|
+
* Response for generic workflow cancellation.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface WorkflowCancelResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface WorkflowCancelResponse {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof WorkflowCancelResponse
|
|
22
|
+
*/
|
|
23
|
+
workflowId: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof WorkflowCancelResponse
|
|
28
|
+
*/
|
|
29
|
+
message: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the WorkflowCancelResponse interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfWorkflowCancelResponse(value: object): value is WorkflowCancelResponse;
|
|
35
|
+
export declare function WorkflowCancelResponseFromJSON(json: any): WorkflowCancelResponse;
|
|
36
|
+
export declare function WorkflowCancelResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): WorkflowCancelResponse;
|
|
37
|
+
export declare function WorkflowCancelResponseToJSON(json: any): WorkflowCancelResponse;
|
|
38
|
+
export declare function WorkflowCancelResponseToJSONTyped(value?: WorkflowCancelResponse | null, ignoreDiscriminator?: boolean): any;
|
|
39
|
+
export declare const WorkflowCancelResponsePropertyValidationAttributesMap: {
|
|
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,48 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Knowledge Stack API
|
|
5
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the WorkflowCancelResponse interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfWorkflowCancelResponse(value) {
|
|
18
|
+
if (!('workflowId' in value) || value['workflowId'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('message' in value) || value['message'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
export function WorkflowCancelResponseFromJSON(json) {
|
|
25
|
+
return WorkflowCancelResponseFromJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
export function WorkflowCancelResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
if (json == null) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
'workflowId': json['workflow_id'],
|
|
33
|
+
'message': json['message'],
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export function WorkflowCancelResponseToJSON(json) {
|
|
37
|
+
return WorkflowCancelResponseToJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
export function WorkflowCancelResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'workflow_id': value['workflowId'],
|
|
45
|
+
'message': value['message'],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
export const WorkflowCancelResponsePropertyValidationAttributesMap = {};
|
|
@@ -108,6 +108,7 @@ export * from './SubtreeChunkGroup';
|
|
|
108
108
|
export * from './SubtreeChunksResponse';
|
|
109
109
|
export * from './SupportedLanguage';
|
|
110
110
|
export * from './TagResponse';
|
|
111
|
+
export * from './TemporalWorkflowStatusResponse';
|
|
111
112
|
export * from './TenantBrandingResponse';
|
|
112
113
|
export * from './TenantResponse';
|
|
113
114
|
export * from './TenantSettingsResponse';
|
|
@@ -135,7 +136,7 @@ export * from './UserMessageResponse';
|
|
|
135
136
|
export * from './UserResponse';
|
|
136
137
|
export * from './ValidationError';
|
|
137
138
|
export * from './VersionChunkIdsResponse';
|
|
138
|
-
export * from './WorkflowAction';
|
|
139
139
|
export * from './WorkflowActionResponse';
|
|
140
|
+
export * from './WorkflowCancelResponse';
|
|
140
141
|
export * from './WorkflowDetailResponse';
|
|
141
142
|
export * from './WorkflowSummaryResponse';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -110,6 +110,7 @@ export * from './SubtreeChunkGroup';
|
|
|
110
110
|
export * from './SubtreeChunksResponse';
|
|
111
111
|
export * from './SupportedLanguage';
|
|
112
112
|
export * from './TagResponse';
|
|
113
|
+
export * from './TemporalWorkflowStatusResponse';
|
|
113
114
|
export * from './TenantBrandingResponse';
|
|
114
115
|
export * from './TenantResponse';
|
|
115
116
|
export * from './TenantSettingsResponse';
|
|
@@ -137,7 +138,7 @@ export * from './UserMessageResponse';
|
|
|
137
138
|
export * from './UserResponse';
|
|
138
139
|
export * from './ValidationError';
|
|
139
140
|
export * from './VersionChunkIdsResponse';
|
|
140
|
-
export * from './WorkflowAction';
|
|
141
141
|
export * from './WorkflowActionResponse';
|
|
142
|
+
export * from './WorkflowCancelResponse';
|
|
142
143
|
export * from './WorkflowDetailResponse';
|
|
143
144
|
export * from './WorkflowSummaryResponse';
|
|
@@ -0,0 +1,83 @@
|
|
|
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
|
+
* Generic Temporal workflow status — no DB interaction.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface TemporalWorkflowStatusResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface TemporalWorkflowStatusResponse {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof TemporalWorkflowStatusResponse
|
|
22
|
+
*/
|
|
23
|
+
workflowId: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof TemporalWorkflowStatusResponse
|
|
28
|
+
*/
|
|
29
|
+
temporalStatus: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof TemporalWorkflowStatusResponse
|
|
34
|
+
*/
|
|
35
|
+
workflowType: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof TemporalWorkflowStatusResponse
|
|
40
|
+
*/
|
|
41
|
+
taskQueue: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {Date}
|
|
45
|
+
* @memberof TemporalWorkflowStatusResponse
|
|
46
|
+
*/
|
|
47
|
+
startTime: Date;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {Date}
|
|
51
|
+
* @memberof TemporalWorkflowStatusResponse
|
|
52
|
+
*/
|
|
53
|
+
closeTime?: Date | null;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof TemporalWorkflowStatusResponse
|
|
58
|
+
*/
|
|
59
|
+
runId: string;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Check if a given object implements the TemporalWorkflowStatusResponse interface.
|
|
63
|
+
*/
|
|
64
|
+
export declare function instanceOfTemporalWorkflowStatusResponse(value: object): value is TemporalWorkflowStatusResponse;
|
|
65
|
+
export declare function TemporalWorkflowStatusResponseFromJSON(json: any): TemporalWorkflowStatusResponse;
|
|
66
|
+
export declare function TemporalWorkflowStatusResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TemporalWorkflowStatusResponse;
|
|
67
|
+
export declare function TemporalWorkflowStatusResponseToJSON(json: any): TemporalWorkflowStatusResponse;
|
|
68
|
+
export declare function TemporalWorkflowStatusResponseToJSONTyped(value?: TemporalWorkflowStatusResponse | null, ignoreDiscriminator?: boolean): any;
|
|
69
|
+
export declare const TemporalWorkflowStatusResponsePropertyValidationAttributesMap: {
|
|
70
|
+
[property: string]: {
|
|
71
|
+
maxLength?: number;
|
|
72
|
+
minLength?: number;
|
|
73
|
+
pattern?: string;
|
|
74
|
+
maximum?: number;
|
|
75
|
+
exclusiveMaximum?: boolean;
|
|
76
|
+
minimum?: number;
|
|
77
|
+
exclusiveMinimum?: boolean;
|
|
78
|
+
multipleOf?: number;
|
|
79
|
+
maxItems?: number;
|
|
80
|
+
minItems?: number;
|
|
81
|
+
uniqueItems?: boolean;
|
|
82
|
+
};
|
|
83
|
+
};
|