@knowledge-stack/ksapi 1.16.0 → 1.17.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 +6 -2
- package/README.md +2 -2
- package/dist/apis/AuthApi.d.ts +1 -30
- package/dist/apis/AuthApi.js +0 -39
- package/dist/apis/DocumentsApi.d.ts +10 -10
- package/dist/apis/DocumentsApi.js +6 -6
- package/dist/apis/FoldersApi.d.ts +10 -10
- package/dist/apis/FoldersApi.js +6 -6
- package/dist/apis/WorkflowsApi.d.ts +117 -0
- package/dist/apis/WorkflowsApi.js +137 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/AuthApi.d.ts +1 -30
- package/dist/esm/apis/AuthApi.js +1 -40
- package/dist/esm/apis/DocumentsApi.d.ts +10 -10
- package/dist/esm/apis/DocumentsApi.js +6 -6
- package/dist/esm/apis/FoldersApi.d.ts +10 -10
- package/dist/esm/apis/FoldersApi.js +6 -6
- package/dist/esm/apis/WorkflowsApi.d.ts +117 -0
- package/dist/esm/apis/WorkflowsApi.js +133 -0
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/CreateDocumentRequest.d.ts +2 -2
- package/dist/esm/models/CreateDocumentRequest.js +3 -3
- package/dist/esm/models/CreateFolderRequest.d.ts +2 -2
- package/dist/esm/models/CreateFolderRequest.js +3 -3
- package/dist/esm/models/DocumentResponse.d.ts +2 -2
- package/dist/esm/models/DocumentResponse.js +3 -3
- package/dist/esm/models/FolderResponse.d.ts +2 -2
- package/dist/esm/models/FolderResponse.js +3 -3
- package/dist/esm/models/PaginatedResponseWorkflowSummaryResponse.d.ts +66 -0
- package/dist/esm/models/PaginatedResponseWorkflowSummaryResponse.js +70 -0
- package/dist/esm/models/PipelineStatus.d.ts +1 -0
- package/dist/esm/models/PipelineStatus.js +2 -1
- package/dist/esm/models/UpdateDocumentRequest.d.ts +2 -2
- package/dist/esm/models/UpdateDocumentRequest.js +2 -2
- package/dist/esm/models/UpdateFolderRequest.d.ts +2 -2
- package/dist/esm/models/UpdateFolderRequest.js +2 -2
- package/dist/esm/models/WorkflowAction.d.ts +25 -0
- package/dist/esm/models/WorkflowAction.js +43 -0
- package/dist/esm/models/WorkflowActionResponse.d.ts +59 -0
- package/dist/esm/models/WorkflowActionResponse.js +52 -0
- package/dist/esm/models/WorkflowDetailResponse.d.ts +132 -0
- package/dist/esm/models/WorkflowDetailResponse.js +93 -0
- package/dist/esm/models/WorkflowSummaryResponse.d.ts +90 -0
- package/dist/esm/models/WorkflowSummaryResponse.js +69 -0
- package/dist/esm/models/index.d.ts +5 -2
- package/dist/esm/models/index.js +5 -2
- package/dist/models/CreateDocumentRequest.d.ts +2 -2
- package/dist/models/CreateDocumentRequest.js +3 -3
- package/dist/models/CreateFolderRequest.d.ts +2 -2
- package/dist/models/CreateFolderRequest.js +3 -3
- package/dist/models/DocumentResponse.d.ts +2 -2
- package/dist/models/DocumentResponse.js +3 -3
- package/dist/models/FolderResponse.d.ts +2 -2
- package/dist/models/FolderResponse.js +3 -3
- package/dist/models/PaginatedResponseWorkflowSummaryResponse.d.ts +66 -0
- package/dist/models/PaginatedResponseWorkflowSummaryResponse.js +78 -0
- package/dist/models/PipelineStatus.d.ts +1 -0
- package/dist/models/PipelineStatus.js +2 -1
- package/dist/models/UpdateDocumentRequest.d.ts +2 -2
- package/dist/models/UpdateDocumentRequest.js +2 -2
- package/dist/models/UpdateFolderRequest.d.ts +2 -2
- package/dist/models/UpdateFolderRequest.js +2 -2
- package/dist/models/WorkflowAction.d.ts +25 -0
- package/dist/models/WorkflowAction.js +51 -0
- package/dist/models/WorkflowActionResponse.d.ts +59 -0
- package/dist/models/WorkflowActionResponse.js +60 -0
- package/dist/models/WorkflowDetailResponse.d.ts +132 -0
- package/dist/models/WorkflowDetailResponse.js +101 -0
- package/dist/models/WorkflowSummaryResponse.d.ts +90 -0
- package/dist/models/WorkflowSummaryResponse.js +77 -0
- package/dist/models/index.d.ts +5 -2
- package/dist/models/index.js +5 -2
- package/package.json +1 -1
- package/src/apis/AuthApi.ts +0 -80
- package/src/apis/DocumentsApi.ts +12 -12
- package/src/apis/FoldersApi.ts +12 -12
- package/src/apis/WorkflowsApi.ts +249 -0
- package/src/apis/index.ts +1 -0
- package/src/models/CreateDocumentRequest.ts +5 -5
- package/src/models/CreateFolderRequest.ts +5 -5
- package/src/models/DocumentResponse.ts +5 -5
- package/src/models/FolderResponse.ts +5 -5
- package/src/models/PaginatedResponseWorkflowSummaryResponse.ts +130 -0
- package/src/models/PipelineStatus.ts +2 -1
- package/src/models/UpdateDocumentRequest.ts +4 -4
- package/src/models/UpdateFolderRequest.ts +4 -4
- package/src/models/WorkflowAction.ts +53 -0
- package/src/models/WorkflowActionResponse.ts +101 -0
- package/src/models/WorkflowDetailResponse.ts +215 -0
- package/src/models/WorkflowSummaryResponse.ts +154 -0
- package/src/models/index.ts +5 -2
- package/dist/esm/models/AssumeUserRequest.d.ts +0 -53
- package/dist/esm/models/AssumeUserRequest.js +0 -48
- package/dist/esm/models/AssumeUserResponse.d.ts +0 -47
- package/dist/esm/models/AssumeUserResponse.js +0 -44
- package/dist/models/AssumeUserRequest.d.ts +0 -53
- package/dist/models/AssumeUserRequest.js +0 -56
- package/dist/models/AssumeUserResponse.d.ts +0 -47
- package/dist/models/AssumeUserResponse.js +0 -52
- package/src/models/AssumeUserRequest.ts +0 -92
- package/src/models/AssumeUserResponse.ts +0 -83
|
@@ -60,11 +60,11 @@ export interface DocumentResponse {
|
|
|
60
60
|
*/
|
|
61
61
|
name: string;
|
|
62
62
|
/**
|
|
63
|
-
* Parent
|
|
63
|
+
* Parent folder ID
|
|
64
64
|
* @type {string}
|
|
65
65
|
* @memberof DocumentResponse
|
|
66
66
|
*/
|
|
67
|
-
|
|
67
|
+
parentFolderId: string;
|
|
68
68
|
/**
|
|
69
69
|
* Type of document
|
|
70
70
|
* @type {DocumentType}
|
|
@@ -124,7 +124,7 @@ export function instanceOfDocumentResponse(value: object): value is DocumentResp
|
|
|
124
124
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
125
125
|
if (!('pathPartId' in value) || value['pathPartId'] === undefined) return false;
|
|
126
126
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
127
|
-
if (!('
|
|
127
|
+
if (!('parentFolderId' in value) || value['parentFolderId'] === undefined) return false;
|
|
128
128
|
if (!('documentType' in value) || value['documentType'] === undefined) return false;
|
|
129
129
|
if (!('documentOrigin' in value) || value['documentOrigin'] === undefined) return false;
|
|
130
130
|
if (!('activeVersionId' in value) || value['activeVersionId'] === undefined) return false;
|
|
@@ -149,7 +149,7 @@ export function DocumentResponseFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
149
149
|
'id': json['id'],
|
|
150
150
|
'pathPartId': json['path_part_id'],
|
|
151
151
|
'name': json['name'],
|
|
152
|
-
'
|
|
152
|
+
'parentFolderId': json['parent_folder_id'],
|
|
153
153
|
'documentType': DocumentTypeFromJSON(json['document_type']),
|
|
154
154
|
'documentOrigin': DocumentOriginFromJSON(json['document_origin']),
|
|
155
155
|
'activeVersionId': json['active_version_id'],
|
|
@@ -175,7 +175,7 @@ export function DocumentResponseToJSONTyped(value?: DocumentResponse | null, ign
|
|
|
175
175
|
'id': value['id'],
|
|
176
176
|
'path_part_id': value['pathPartId'],
|
|
177
177
|
'name': value['name'],
|
|
178
|
-
'
|
|
178
|
+
'parent_folder_id': value['parentFolderId'],
|
|
179
179
|
'document_type': DocumentTypeToJSON(value['documentType']),
|
|
180
180
|
'document_origin': DocumentOriginToJSON(value['documentOrigin']),
|
|
181
181
|
'active_version_id': value['activeVersionId'],
|
|
@@ -38,11 +38,11 @@ export interface FolderResponse {
|
|
|
38
38
|
*/
|
|
39
39
|
name: string;
|
|
40
40
|
/**
|
|
41
|
-
* Parent
|
|
41
|
+
* Parent folder ID
|
|
42
42
|
* @type {string}
|
|
43
43
|
* @memberof FolderResponse
|
|
44
44
|
*/
|
|
45
|
-
|
|
45
|
+
parentFolderId: string;
|
|
46
46
|
/**
|
|
47
47
|
* Full materialized path from root
|
|
48
48
|
* @type {string}
|
|
@@ -76,7 +76,7 @@ export function instanceOfFolderResponse(value: object): value is FolderResponse
|
|
|
76
76
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
77
77
|
if (!('pathPartId' in value) || value['pathPartId'] === undefined) return false;
|
|
78
78
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
79
|
-
if (!('
|
|
79
|
+
if (!('parentFolderId' in value) || value['parentFolderId'] === undefined) return false;
|
|
80
80
|
if (!('materializedPath' in value) || value['materializedPath'] === undefined) return false;
|
|
81
81
|
if (!('tenantId' in value) || value['tenantId'] === undefined) return false;
|
|
82
82
|
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
@@ -97,7 +97,7 @@ export function FolderResponseFromJSONTyped(json: any, ignoreDiscriminator: bool
|
|
|
97
97
|
'id': json['id'],
|
|
98
98
|
'pathPartId': json['path_part_id'],
|
|
99
99
|
'name': json['name'],
|
|
100
|
-
'
|
|
100
|
+
'parentFolderId': json['parent_folder_id'],
|
|
101
101
|
'materializedPath': json['materialized_path'],
|
|
102
102
|
'tenantId': json['tenant_id'],
|
|
103
103
|
'createdAt': (new Date(json['created_at'])),
|
|
@@ -119,7 +119,7 @@ export function FolderResponseToJSONTyped(value?: FolderResponse | null, ignoreD
|
|
|
119
119
|
'id': value['id'],
|
|
120
120
|
'path_part_id': value['pathPartId'],
|
|
121
121
|
'name': value['name'],
|
|
122
|
-
'
|
|
122
|
+
'parent_folder_id': value['parentFolderId'],
|
|
123
123
|
'materialized_path': value['materializedPath'],
|
|
124
124
|
'tenant_id': value['tenantId'],
|
|
125
125
|
'created_at': value['createdAt'].toISOString(),
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Knowledge Stack API
|
|
5
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { WorkflowSummaryResponse } from './WorkflowSummaryResponse';
|
|
17
|
+
import {
|
|
18
|
+
WorkflowSummaryResponseFromJSON,
|
|
19
|
+
WorkflowSummaryResponseFromJSONTyped,
|
|
20
|
+
WorkflowSummaryResponseToJSON,
|
|
21
|
+
WorkflowSummaryResponseToJSONTyped,
|
|
22
|
+
} from './WorkflowSummaryResponse';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface PaginatedResponseWorkflowSummaryResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface PaginatedResponseWorkflowSummaryResponse {
|
|
30
|
+
/**
|
|
31
|
+
* List of items
|
|
32
|
+
* @type {Array<WorkflowSummaryResponse>}
|
|
33
|
+
* @memberof PaginatedResponseWorkflowSummaryResponse
|
|
34
|
+
*/
|
|
35
|
+
items: Array<WorkflowSummaryResponse>;
|
|
36
|
+
/**
|
|
37
|
+
* Total number of items
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof PaginatedResponseWorkflowSummaryResponse
|
|
40
|
+
*/
|
|
41
|
+
total: number;
|
|
42
|
+
/**
|
|
43
|
+
* Number of items per page
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof PaginatedResponseWorkflowSummaryResponse
|
|
46
|
+
*/
|
|
47
|
+
limit: number;
|
|
48
|
+
/**
|
|
49
|
+
* Number of items to skip
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof PaginatedResponseWorkflowSummaryResponse
|
|
52
|
+
*/
|
|
53
|
+
offset: number;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the PaginatedResponseWorkflowSummaryResponse interface.
|
|
58
|
+
*/
|
|
59
|
+
export function instanceOfPaginatedResponseWorkflowSummaryResponse(value: object): value is PaginatedResponseWorkflowSummaryResponse {
|
|
60
|
+
if (!('items' in value) || value['items'] === undefined) return false;
|
|
61
|
+
if (!('total' in value) || value['total'] === undefined) return false;
|
|
62
|
+
if (!('limit' in value) || value['limit'] === undefined) return false;
|
|
63
|
+
if (!('offset' in value) || value['offset'] === undefined) return false;
|
|
64
|
+
return true;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function PaginatedResponseWorkflowSummaryResponseFromJSON(json: any): PaginatedResponseWorkflowSummaryResponse {
|
|
68
|
+
return PaginatedResponseWorkflowSummaryResponseFromJSONTyped(json, false);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function PaginatedResponseWorkflowSummaryResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedResponseWorkflowSummaryResponse {
|
|
72
|
+
if (json == null) {
|
|
73
|
+
return json;
|
|
74
|
+
}
|
|
75
|
+
return {
|
|
76
|
+
|
|
77
|
+
'items': ((json['items'] as Array<any>).map(WorkflowSummaryResponseFromJSON)),
|
|
78
|
+
'total': json['total'],
|
|
79
|
+
'limit': json['limit'],
|
|
80
|
+
'offset': json['offset'],
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function PaginatedResponseWorkflowSummaryResponseToJSON(json: any): PaginatedResponseWorkflowSummaryResponse {
|
|
85
|
+
return PaginatedResponseWorkflowSummaryResponseToJSONTyped(json, false);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function PaginatedResponseWorkflowSummaryResponseToJSONTyped(value?: PaginatedResponseWorkflowSummaryResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
89
|
+
if (value == null) {
|
|
90
|
+
return value;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
return {
|
|
94
|
+
|
|
95
|
+
'items': ((value['items'] as Array<any>).map(WorkflowSummaryResponseToJSON)),
|
|
96
|
+
'total': value['total'],
|
|
97
|
+
'limit': value['limit'],
|
|
98
|
+
'offset': value['offset'],
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export const PaginatedResponseWorkflowSummaryResponsePropertyValidationAttributesMap: {
|
|
103
|
+
[property: string]: {
|
|
104
|
+
maxLength?: number,
|
|
105
|
+
minLength?: number,
|
|
106
|
+
pattern?: string,
|
|
107
|
+
maximum?: number,
|
|
108
|
+
exclusiveMaximum?: boolean,
|
|
109
|
+
minimum?: number,
|
|
110
|
+
exclusiveMinimum?: boolean,
|
|
111
|
+
multipleOf?: number,
|
|
112
|
+
maxItems?: number,
|
|
113
|
+
minItems?: number,
|
|
114
|
+
uniqueItems?: boolean
|
|
115
|
+
}
|
|
116
|
+
} = {
|
|
117
|
+
total: {
|
|
118
|
+
minimum: 0,
|
|
119
|
+
exclusiveMinimum: false,
|
|
120
|
+
},
|
|
121
|
+
limit: {
|
|
122
|
+
minimum: 1,
|
|
123
|
+
exclusiveMinimum: false,
|
|
124
|
+
},
|
|
125
|
+
offset: {
|
|
126
|
+
minimum: 0,
|
|
127
|
+
exclusiveMinimum: false,
|
|
128
|
+
},
|
|
129
|
+
}
|
|
130
|
+
|
|
@@ -21,7 +21,8 @@ export const PipelineStatus = {
|
|
|
21
21
|
Pending: 'pending',
|
|
22
22
|
Processing: 'processing',
|
|
23
23
|
Completed: 'completed',
|
|
24
|
-
Failed: 'failed'
|
|
24
|
+
Failed: 'failed',
|
|
25
|
+
Cancelled: 'cancelled'
|
|
25
26
|
} as const;
|
|
26
27
|
export type PipelineStatus = typeof PipelineStatus[keyof typeof PipelineStatus];
|
|
27
28
|
|
|
@@ -26,11 +26,11 @@ export interface UpdateDocumentRequest {
|
|
|
26
26
|
*/
|
|
27
27
|
name?: string;
|
|
28
28
|
/**
|
|
29
|
-
* New parent folder
|
|
29
|
+
* New parent folder ID (for move)
|
|
30
30
|
* @type {string}
|
|
31
31
|
* @memberof UpdateDocumentRequest
|
|
32
32
|
*/
|
|
33
|
-
|
|
33
|
+
parentFolderId?: string;
|
|
34
34
|
/**
|
|
35
35
|
* New active version ID
|
|
36
36
|
* @type {string}
|
|
@@ -57,7 +57,7 @@ export function UpdateDocumentRequestFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
57
57
|
return {
|
|
58
58
|
|
|
59
59
|
'name': json['name'] == null ? undefined : json['name'],
|
|
60
|
-
'
|
|
60
|
+
'parentFolderId': json['parent_folder_id'] == null ? undefined : json['parent_folder_id'],
|
|
61
61
|
'activeVersionId': json['active_version_id'] == null ? undefined : json['active_version_id'],
|
|
62
62
|
};
|
|
63
63
|
}
|
|
@@ -74,7 +74,7 @@ export function UpdateDocumentRequestToJSONTyped(value?: UpdateDocumentRequest |
|
|
|
74
74
|
return {
|
|
75
75
|
|
|
76
76
|
'name': value['name'],
|
|
77
|
-
'
|
|
77
|
+
'parent_folder_id': value['parentFolderId'],
|
|
78
78
|
'active_version_id': value['activeVersionId'],
|
|
79
79
|
};
|
|
80
80
|
}
|
|
@@ -26,11 +26,11 @@ export interface UpdateFolderRequest {
|
|
|
26
26
|
*/
|
|
27
27
|
name?: string;
|
|
28
28
|
/**
|
|
29
|
-
* New parent folder
|
|
29
|
+
* New parent folder ID (for move)
|
|
30
30
|
* @type {string}
|
|
31
31
|
* @memberof UpdateFolderRequest
|
|
32
32
|
*/
|
|
33
|
-
|
|
33
|
+
parentFolderId?: string;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
/**
|
|
@@ -51,7 +51,7 @@ export function UpdateFolderRequestFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
51
51
|
return {
|
|
52
52
|
|
|
53
53
|
'name': json['name'] == null ? undefined : json['name'],
|
|
54
|
-
'
|
|
54
|
+
'parentFolderId': json['parent_folder_id'] == null ? undefined : json['parent_folder_id'],
|
|
55
55
|
};
|
|
56
56
|
}
|
|
57
57
|
|
|
@@ -67,7 +67,7 @@ export function UpdateFolderRequestToJSONTyped(value?: UpdateFolderRequest | nul
|
|
|
67
67
|
return {
|
|
68
68
|
|
|
69
69
|
'name': value['name'],
|
|
70
|
-
'
|
|
70
|
+
'parent_folder_id': value['parentFolderId'],
|
|
71
71
|
};
|
|
72
72
|
}
|
|
73
73
|
|
|
@@ -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
|
+
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Supported workflow actions.
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const WorkflowAction = {
|
|
21
|
+
Rerun: 'rerun',
|
|
22
|
+
Cancel: 'cancel'
|
|
23
|
+
} as const;
|
|
24
|
+
export type WorkflowAction = typeof WorkflowAction[keyof typeof WorkflowAction];
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
export function instanceOfWorkflowAction(value: any): boolean {
|
|
28
|
+
for (const key in WorkflowAction) {
|
|
29
|
+
if (Object.prototype.hasOwnProperty.call(WorkflowAction, key)) {
|
|
30
|
+
if (WorkflowAction[key as keyof typeof WorkflowAction] === value) {
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
return false;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function WorkflowActionFromJSON(json: any): WorkflowAction {
|
|
39
|
+
return WorkflowActionFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function WorkflowActionFromJSONTyped(json: any, ignoreDiscriminator: boolean): WorkflowAction {
|
|
43
|
+
return json as WorkflowAction;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function WorkflowActionToJSON(value?: WorkflowAction | null): any {
|
|
47
|
+
return value as any;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function WorkflowActionToJSONTyped(value: any, ignoreDiscriminator: boolean): WorkflowAction {
|
|
51
|
+
return value as WorkflowAction;
|
|
52
|
+
}
|
|
53
|
+
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Knowledge Stack API
|
|
5
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
* POST response for cancel/rerun.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface WorkflowActionResponse
|
|
20
|
+
*/
|
|
21
|
+
export interface WorkflowActionResponse {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof WorkflowActionResponse
|
|
26
|
+
*/
|
|
27
|
+
workflowId: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof WorkflowActionResponse
|
|
32
|
+
*/
|
|
33
|
+
action: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof WorkflowActionResponse
|
|
38
|
+
*/
|
|
39
|
+
message: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the WorkflowActionResponse interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfWorkflowActionResponse(value: object): value is WorkflowActionResponse {
|
|
46
|
+
if (!('workflowId' in value) || value['workflowId'] === undefined) return false;
|
|
47
|
+
if (!('action' in value) || value['action'] === undefined) return false;
|
|
48
|
+
if (!('message' in value) || value['message'] === undefined) return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function WorkflowActionResponseFromJSON(json: any): WorkflowActionResponse {
|
|
53
|
+
return WorkflowActionResponseFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function WorkflowActionResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): WorkflowActionResponse {
|
|
57
|
+
if (json == null) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'workflowId': json['workflow_id'],
|
|
63
|
+
'action': json['action'],
|
|
64
|
+
'message': json['message'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function WorkflowActionResponseToJSON(json: any): WorkflowActionResponse {
|
|
69
|
+
return WorkflowActionResponseToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function WorkflowActionResponseToJSONTyped(value?: WorkflowActionResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'workflow_id': value['workflowId'],
|
|
80
|
+
'action': value['action'],
|
|
81
|
+
'message': value['message'],
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export const WorkflowActionResponsePropertyValidationAttributesMap: {
|
|
86
|
+
[property: string]: {
|
|
87
|
+
maxLength?: number,
|
|
88
|
+
minLength?: number,
|
|
89
|
+
pattern?: string,
|
|
90
|
+
maximum?: number,
|
|
91
|
+
exclusiveMaximum?: boolean,
|
|
92
|
+
minimum?: number,
|
|
93
|
+
exclusiveMinimum?: boolean,
|
|
94
|
+
multipleOf?: number,
|
|
95
|
+
maxItems?: number,
|
|
96
|
+
minItems?: number,
|
|
97
|
+
uniqueItems?: boolean
|
|
98
|
+
}
|
|
99
|
+
} = {
|
|
100
|
+
}
|
|
101
|
+
|
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Knowledge Stack API
|
|
5
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { PipelineStatus } from './PipelineStatus';
|
|
17
|
+
import {
|
|
18
|
+
PipelineStatusFromJSON,
|
|
19
|
+
PipelineStatusFromJSONTyped,
|
|
20
|
+
PipelineStatusToJSON,
|
|
21
|
+
PipelineStatusToJSONTyped,
|
|
22
|
+
} from './PipelineStatus';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Single item - adds live Temporal fields.
|
|
26
|
+
* @export
|
|
27
|
+
* @interface WorkflowDetailResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface WorkflowDetailResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof WorkflowDetailResponse
|
|
34
|
+
*/
|
|
35
|
+
workflowId: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof WorkflowDetailResponse
|
|
40
|
+
*/
|
|
41
|
+
documentId: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof WorkflowDetailResponse
|
|
46
|
+
*/
|
|
47
|
+
documentVersionId: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {PipelineStatus}
|
|
51
|
+
* @memberof WorkflowDetailResponse
|
|
52
|
+
*/
|
|
53
|
+
status: PipelineStatus;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof WorkflowDetailResponse
|
|
58
|
+
*/
|
|
59
|
+
lastActivity?: string;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof WorkflowDetailResponse
|
|
64
|
+
*/
|
|
65
|
+
error?: string;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {Date}
|
|
69
|
+
* @memberof WorkflowDetailResponse
|
|
70
|
+
*/
|
|
71
|
+
lastRunTimestamp: Date;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {Date}
|
|
75
|
+
* @memberof WorkflowDetailResponse
|
|
76
|
+
*/
|
|
77
|
+
createdAt: Date;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {string}
|
|
81
|
+
* @memberof WorkflowDetailResponse
|
|
82
|
+
*/
|
|
83
|
+
temporalStatus: string;
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @type {Date}
|
|
87
|
+
* @memberof WorkflowDetailResponse
|
|
88
|
+
*/
|
|
89
|
+
startTime: Date;
|
|
90
|
+
/**
|
|
91
|
+
*
|
|
92
|
+
* @type {Date}
|
|
93
|
+
* @memberof WorkflowDetailResponse
|
|
94
|
+
*/
|
|
95
|
+
closeTime?: Date;
|
|
96
|
+
/**
|
|
97
|
+
*
|
|
98
|
+
* @type {string}
|
|
99
|
+
* @memberof WorkflowDetailResponse
|
|
100
|
+
*/
|
|
101
|
+
workflowType: string;
|
|
102
|
+
/**
|
|
103
|
+
*
|
|
104
|
+
* @type {string}
|
|
105
|
+
* @memberof WorkflowDetailResponse
|
|
106
|
+
*/
|
|
107
|
+
taskQueue: string;
|
|
108
|
+
/**
|
|
109
|
+
*
|
|
110
|
+
* @type {string}
|
|
111
|
+
* @memberof WorkflowDetailResponse
|
|
112
|
+
*/
|
|
113
|
+
runId: string;
|
|
114
|
+
/**
|
|
115
|
+
*
|
|
116
|
+
* @type {number}
|
|
117
|
+
* @memberof WorkflowDetailResponse
|
|
118
|
+
*/
|
|
119
|
+
chunksProcessed?: number;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* Check if a given object implements the WorkflowDetailResponse interface.
|
|
126
|
+
*/
|
|
127
|
+
export function instanceOfWorkflowDetailResponse(value: object): value is WorkflowDetailResponse {
|
|
128
|
+
if (!('workflowId' in value) || value['workflowId'] === undefined) return false;
|
|
129
|
+
if (!('documentId' in value) || value['documentId'] === undefined) return false;
|
|
130
|
+
if (!('documentVersionId' in value) || value['documentVersionId'] === undefined) return false;
|
|
131
|
+
if (!('status' in value) || value['status'] === undefined) return false;
|
|
132
|
+
if (!('lastRunTimestamp' in value) || value['lastRunTimestamp'] === undefined) return false;
|
|
133
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
134
|
+
if (!('temporalStatus' in value) || value['temporalStatus'] === undefined) return false;
|
|
135
|
+
if (!('startTime' in value) || value['startTime'] === undefined) return false;
|
|
136
|
+
if (!('workflowType' in value) || value['workflowType'] === undefined) return false;
|
|
137
|
+
if (!('taskQueue' in value) || value['taskQueue'] === undefined) return false;
|
|
138
|
+
if (!('runId' in value) || value['runId'] === undefined) return false;
|
|
139
|
+
return true;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
export function WorkflowDetailResponseFromJSON(json: any): WorkflowDetailResponse {
|
|
143
|
+
return WorkflowDetailResponseFromJSONTyped(json, false);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
export function WorkflowDetailResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): WorkflowDetailResponse {
|
|
147
|
+
if (json == null) {
|
|
148
|
+
return json;
|
|
149
|
+
}
|
|
150
|
+
return {
|
|
151
|
+
|
|
152
|
+
'workflowId': json['workflow_id'],
|
|
153
|
+
'documentId': json['document_id'],
|
|
154
|
+
'documentVersionId': json['document_version_id'],
|
|
155
|
+
'status': PipelineStatusFromJSON(json['status']),
|
|
156
|
+
'lastActivity': json['last_activity'] == null ? undefined : json['last_activity'],
|
|
157
|
+
'error': json['error'] == null ? undefined : json['error'],
|
|
158
|
+
'lastRunTimestamp': (new Date(json['last_run_timestamp'])),
|
|
159
|
+
'createdAt': (new Date(json['created_at'])),
|
|
160
|
+
'temporalStatus': json['temporal_status'],
|
|
161
|
+
'startTime': (new Date(json['start_time'])),
|
|
162
|
+
'closeTime': json['close_time'] == null ? undefined : (new Date(json['close_time'])),
|
|
163
|
+
'workflowType': json['workflow_type'],
|
|
164
|
+
'taskQueue': json['task_queue'],
|
|
165
|
+
'runId': json['run_id'],
|
|
166
|
+
'chunksProcessed': json['chunks_processed'] == null ? undefined : json['chunks_processed'],
|
|
167
|
+
};
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
export function WorkflowDetailResponseToJSON(json: any): WorkflowDetailResponse {
|
|
171
|
+
return WorkflowDetailResponseToJSONTyped(json, false);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
export function WorkflowDetailResponseToJSONTyped(value?: WorkflowDetailResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
175
|
+
if (value == null) {
|
|
176
|
+
return value;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
return {
|
|
180
|
+
|
|
181
|
+
'workflow_id': value['workflowId'],
|
|
182
|
+
'document_id': value['documentId'],
|
|
183
|
+
'document_version_id': value['documentVersionId'],
|
|
184
|
+
'status': PipelineStatusToJSON(value['status']),
|
|
185
|
+
'last_activity': value['lastActivity'],
|
|
186
|
+
'error': value['error'],
|
|
187
|
+
'last_run_timestamp': value['lastRunTimestamp'].toISOString(),
|
|
188
|
+
'created_at': value['createdAt'].toISOString(),
|
|
189
|
+
'temporal_status': value['temporalStatus'],
|
|
190
|
+
'start_time': value['startTime'].toISOString(),
|
|
191
|
+
'close_time': value['closeTime'] == null ? value['closeTime'] : value['closeTime'].toISOString(),
|
|
192
|
+
'workflow_type': value['workflowType'],
|
|
193
|
+
'task_queue': value['taskQueue'],
|
|
194
|
+
'run_id': value['runId'],
|
|
195
|
+
'chunks_processed': value['chunksProcessed'],
|
|
196
|
+
};
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
export const WorkflowDetailResponsePropertyValidationAttributesMap: {
|
|
200
|
+
[property: string]: {
|
|
201
|
+
maxLength?: number,
|
|
202
|
+
minLength?: number,
|
|
203
|
+
pattern?: string,
|
|
204
|
+
maximum?: number,
|
|
205
|
+
exclusiveMaximum?: boolean,
|
|
206
|
+
minimum?: number,
|
|
207
|
+
exclusiveMinimum?: boolean,
|
|
208
|
+
multipleOf?: number,
|
|
209
|
+
maxItems?: number,
|
|
210
|
+
minItems?: number,
|
|
211
|
+
uniqueItems?: boolean
|
|
212
|
+
}
|
|
213
|
+
} = {
|
|
214
|
+
}
|
|
215
|
+
|