@knowledge-stack/ksapi 1.16.0 → 1.17.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +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
|
@@ -22,11 +22,11 @@ export interface CreateFolderRequest {
|
|
|
22
22
|
*/
|
|
23
23
|
name: string;
|
|
24
24
|
/**
|
|
25
|
-
* Parent folder
|
|
25
|
+
* Parent folder ID
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof CreateFolderRequest
|
|
28
28
|
*/
|
|
29
|
-
|
|
29
|
+
parentFolderId: string;
|
|
30
30
|
}
|
|
31
31
|
/**
|
|
32
32
|
* Check if a given object implements the CreateFolderRequest interface.
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
export function instanceOfCreateFolderRequest(value) {
|
|
18
18
|
if (!('name' in value) || value['name'] === undefined)
|
|
19
19
|
return false;
|
|
20
|
-
if (!('
|
|
20
|
+
if (!('parentFolderId' in value) || value['parentFolderId'] === undefined)
|
|
21
21
|
return false;
|
|
22
22
|
return true;
|
|
23
23
|
}
|
|
@@ -30,7 +30,7 @@ export function CreateFolderRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
30
30
|
}
|
|
31
31
|
return {
|
|
32
32
|
'name': json['name'],
|
|
33
|
-
'
|
|
33
|
+
'parentFolderId': json['parent_folder_id'],
|
|
34
34
|
};
|
|
35
35
|
}
|
|
36
36
|
export function CreateFolderRequestToJSON(json) {
|
|
@@ -42,7 +42,7 @@ export function CreateFolderRequestToJSONTyped(value, ignoreDiscriminator = fals
|
|
|
42
42
|
}
|
|
43
43
|
return {
|
|
44
44
|
'name': value['name'],
|
|
45
|
-
'
|
|
45
|
+
'parent_folder_id': value['parentFolderId'],
|
|
46
46
|
};
|
|
47
47
|
}
|
|
48
48
|
export const CreateFolderRequestPropertyValidationAttributesMap = {
|
|
@@ -37,11 +37,11 @@ export interface DocumentResponse {
|
|
|
37
37
|
*/
|
|
38
38
|
name: string;
|
|
39
39
|
/**
|
|
40
|
-
* Parent
|
|
40
|
+
* Parent folder ID
|
|
41
41
|
* @type {string}
|
|
42
42
|
* @memberof DocumentResponse
|
|
43
43
|
*/
|
|
44
|
-
|
|
44
|
+
parentFolderId: string;
|
|
45
45
|
/**
|
|
46
46
|
* Type of document
|
|
47
47
|
* @type {DocumentType}
|
|
@@ -24,7 +24,7 @@ export function instanceOfDocumentResponse(value) {
|
|
|
24
24
|
return false;
|
|
25
25
|
if (!('name' in value) || value['name'] === undefined)
|
|
26
26
|
return false;
|
|
27
|
-
if (!('
|
|
27
|
+
if (!('parentFolderId' in value) || value['parentFolderId'] === undefined)
|
|
28
28
|
return false;
|
|
29
29
|
if (!('documentType' in value) || value['documentType'] === undefined)
|
|
30
30
|
return false;
|
|
@@ -55,7 +55,7 @@ export function DocumentResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
55
55
|
'id': json['id'],
|
|
56
56
|
'pathPartId': json['path_part_id'],
|
|
57
57
|
'name': json['name'],
|
|
58
|
-
'
|
|
58
|
+
'parentFolderId': json['parent_folder_id'],
|
|
59
59
|
'documentType': DocumentTypeFromJSON(json['document_type']),
|
|
60
60
|
'documentOrigin': DocumentOriginFromJSON(json['document_origin']),
|
|
61
61
|
'activeVersionId': json['active_version_id'],
|
|
@@ -77,7 +77,7 @@ export function DocumentResponseToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
77
77
|
'id': value['id'],
|
|
78
78
|
'path_part_id': value['pathPartId'],
|
|
79
79
|
'name': value['name'],
|
|
80
|
-
'
|
|
80
|
+
'parent_folder_id': value['parentFolderId'],
|
|
81
81
|
'document_type': DocumentTypeToJSON(value['documentType']),
|
|
82
82
|
'document_origin': DocumentOriginToJSON(value['documentOrigin']),
|
|
83
83
|
'active_version_id': value['activeVersionId'],
|
|
@@ -34,11 +34,11 @@ export interface FolderResponse {
|
|
|
34
34
|
*/
|
|
35
35
|
name: string;
|
|
36
36
|
/**
|
|
37
|
-
* Parent
|
|
37
|
+
* Parent folder ID
|
|
38
38
|
* @type {string}
|
|
39
39
|
* @memberof FolderResponse
|
|
40
40
|
*/
|
|
41
|
-
|
|
41
|
+
parentFolderId: string;
|
|
42
42
|
/**
|
|
43
43
|
* Full materialized path from root
|
|
44
44
|
* @type {string}
|
|
@@ -21,7 +21,7 @@ export function instanceOfFolderResponse(value) {
|
|
|
21
21
|
return false;
|
|
22
22
|
if (!('name' in value) || value['name'] === undefined)
|
|
23
23
|
return false;
|
|
24
|
-
if (!('
|
|
24
|
+
if (!('parentFolderId' in value) || value['parentFolderId'] === undefined)
|
|
25
25
|
return false;
|
|
26
26
|
if (!('materializedPath' in value) || value['materializedPath'] === undefined)
|
|
27
27
|
return false;
|
|
@@ -44,7 +44,7 @@ export function FolderResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
44
44
|
'id': json['id'],
|
|
45
45
|
'pathPartId': json['path_part_id'],
|
|
46
46
|
'name': json['name'],
|
|
47
|
-
'
|
|
47
|
+
'parentFolderId': json['parent_folder_id'],
|
|
48
48
|
'materializedPath': json['materialized_path'],
|
|
49
49
|
'tenantId': json['tenant_id'],
|
|
50
50
|
'createdAt': (new Date(json['created_at'])),
|
|
@@ -62,7 +62,7 @@ export function FolderResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
62
62
|
'id': value['id'],
|
|
63
63
|
'path_part_id': value['pathPartId'],
|
|
64
64
|
'name': value['name'],
|
|
65
|
-
'
|
|
65
|
+
'parent_folder_id': value['parentFolderId'],
|
|
66
66
|
'materialized_path': value['materializedPath'],
|
|
67
67
|
'tenant_id': value['tenantId'],
|
|
68
68
|
'created_at': value['createdAt'].toISOString(),
|
|
@@ -0,0 +1,66 @@
|
|
|
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 { WorkflowSummaryResponse } from './WorkflowSummaryResponse';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface PaginatedResponseWorkflowSummaryResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface PaginatedResponseWorkflowSummaryResponse {
|
|
19
|
+
/**
|
|
20
|
+
* List of items
|
|
21
|
+
* @type {Array<WorkflowSummaryResponse>}
|
|
22
|
+
* @memberof PaginatedResponseWorkflowSummaryResponse
|
|
23
|
+
*/
|
|
24
|
+
items: Array<WorkflowSummaryResponse>;
|
|
25
|
+
/**
|
|
26
|
+
* Total number of items
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof PaginatedResponseWorkflowSummaryResponse
|
|
29
|
+
*/
|
|
30
|
+
total: number;
|
|
31
|
+
/**
|
|
32
|
+
* Number of items per page
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof PaginatedResponseWorkflowSummaryResponse
|
|
35
|
+
*/
|
|
36
|
+
limit: number;
|
|
37
|
+
/**
|
|
38
|
+
* Number of items to skip
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof PaginatedResponseWorkflowSummaryResponse
|
|
41
|
+
*/
|
|
42
|
+
offset: number;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the PaginatedResponseWorkflowSummaryResponse interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfPaginatedResponseWorkflowSummaryResponse(value: object): value is PaginatedResponseWorkflowSummaryResponse;
|
|
48
|
+
export declare function PaginatedResponseWorkflowSummaryResponseFromJSON(json: any): PaginatedResponseWorkflowSummaryResponse;
|
|
49
|
+
export declare function PaginatedResponseWorkflowSummaryResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedResponseWorkflowSummaryResponse;
|
|
50
|
+
export declare function PaginatedResponseWorkflowSummaryResponseToJSON(json: any): PaginatedResponseWorkflowSummaryResponse;
|
|
51
|
+
export declare function PaginatedResponseWorkflowSummaryResponseToJSONTyped(value?: PaginatedResponseWorkflowSummaryResponse | null, ignoreDiscriminator?: boolean): any;
|
|
52
|
+
export declare const PaginatedResponseWorkflowSummaryResponsePropertyValidationAttributesMap: {
|
|
53
|
+
[property: string]: {
|
|
54
|
+
maxLength?: number;
|
|
55
|
+
minLength?: number;
|
|
56
|
+
pattern?: string;
|
|
57
|
+
maximum?: number;
|
|
58
|
+
exclusiveMaximum?: boolean;
|
|
59
|
+
minimum?: number;
|
|
60
|
+
exclusiveMinimum?: boolean;
|
|
61
|
+
multipleOf?: number;
|
|
62
|
+
maxItems?: number;
|
|
63
|
+
minItems?: number;
|
|
64
|
+
uniqueItems?: boolean;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
@@ -0,0 +1,70 @@
|
|
|
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 { WorkflowSummaryResponseFromJSON, WorkflowSummaryResponseToJSON, } from './WorkflowSummaryResponse';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the PaginatedResponseWorkflowSummaryResponse interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfPaginatedResponseWorkflowSummaryResponse(value) {
|
|
19
|
+
if (!('items' in value) || value['items'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('total' in value) || value['total'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('limit' in value) || value['limit'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
if (!('offset' in value) || value['offset'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
export function PaginatedResponseWorkflowSummaryResponseFromJSON(json) {
|
|
30
|
+
return PaginatedResponseWorkflowSummaryResponseFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
export function PaginatedResponseWorkflowSummaryResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'items': (json['items'].map(WorkflowSummaryResponseFromJSON)),
|
|
38
|
+
'total': json['total'],
|
|
39
|
+
'limit': json['limit'],
|
|
40
|
+
'offset': json['offset'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
export function PaginatedResponseWorkflowSummaryResponseToJSON(json) {
|
|
44
|
+
return PaginatedResponseWorkflowSummaryResponseToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
export function PaginatedResponseWorkflowSummaryResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'items': (value['items'].map(WorkflowSummaryResponseToJSON)),
|
|
52
|
+
'total': value['total'],
|
|
53
|
+
'limit': value['limit'],
|
|
54
|
+
'offset': value['offset'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
export const PaginatedResponseWorkflowSummaryResponsePropertyValidationAttributesMap = {
|
|
58
|
+
total: {
|
|
59
|
+
minimum: 0,
|
|
60
|
+
exclusiveMinimum: false,
|
|
61
|
+
},
|
|
62
|
+
limit: {
|
|
63
|
+
minimum: 1,
|
|
64
|
+
exclusiveMinimum: false,
|
|
65
|
+
},
|
|
66
|
+
offset: {
|
|
67
|
+
minimum: 0,
|
|
68
|
+
exclusiveMinimum: false,
|
|
69
|
+
},
|
|
70
|
+
};
|
|
@@ -18,6 +18,7 @@ export declare const PipelineStatus: {
|
|
|
18
18
|
readonly Processing: "processing";
|
|
19
19
|
readonly Completed: "completed";
|
|
20
20
|
readonly Failed: "failed";
|
|
21
|
+
readonly Cancelled: "cancelled";
|
|
21
22
|
};
|
|
22
23
|
export type PipelineStatus = typeof PipelineStatus[keyof typeof PipelineStatus];
|
|
23
24
|
export declare function instanceOfPipelineStatus(value: any): boolean;
|
|
@@ -19,7 +19,8 @@ export const PipelineStatus = {
|
|
|
19
19
|
Pending: 'pending',
|
|
20
20
|
Processing: 'processing',
|
|
21
21
|
Completed: 'completed',
|
|
22
|
-
Failed: 'failed'
|
|
22
|
+
Failed: 'failed',
|
|
23
|
+
Cancelled: 'cancelled'
|
|
23
24
|
};
|
|
24
25
|
export function instanceOfPipelineStatus(value) {
|
|
25
26
|
for (const key in PipelineStatus) {
|
|
@@ -22,11 +22,11 @@ export interface UpdateDocumentRequest {
|
|
|
22
22
|
*/
|
|
23
23
|
name?: string;
|
|
24
24
|
/**
|
|
25
|
-
* New parent folder
|
|
25
|
+
* New parent folder ID (for move)
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof UpdateDocumentRequest
|
|
28
28
|
*/
|
|
29
|
-
|
|
29
|
+
parentFolderId?: string;
|
|
30
30
|
/**
|
|
31
31
|
* New active version ID
|
|
32
32
|
* @type {string}
|
|
@@ -26,7 +26,7 @@ export function UpdateDocumentRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
26
26
|
}
|
|
27
27
|
return {
|
|
28
28
|
'name': json['name'] == null ? undefined : json['name'],
|
|
29
|
-
'
|
|
29
|
+
'parentFolderId': json['parent_folder_id'] == null ? undefined : json['parent_folder_id'],
|
|
30
30
|
'activeVersionId': json['active_version_id'] == null ? undefined : json['active_version_id'],
|
|
31
31
|
};
|
|
32
32
|
}
|
|
@@ -39,7 +39,7 @@ export function UpdateDocumentRequestToJSONTyped(value, ignoreDiscriminator = fa
|
|
|
39
39
|
}
|
|
40
40
|
return {
|
|
41
41
|
'name': value['name'],
|
|
42
|
-
'
|
|
42
|
+
'parent_folder_id': value['parentFolderId'],
|
|
43
43
|
'active_version_id': value['activeVersionId'],
|
|
44
44
|
};
|
|
45
45
|
}
|
|
@@ -22,11 +22,11 @@ export interface UpdateFolderRequest {
|
|
|
22
22
|
*/
|
|
23
23
|
name?: string;
|
|
24
24
|
/**
|
|
25
|
-
* New parent folder
|
|
25
|
+
* New parent folder ID (for move)
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof UpdateFolderRequest
|
|
28
28
|
*/
|
|
29
|
-
|
|
29
|
+
parentFolderId?: string;
|
|
30
30
|
}
|
|
31
31
|
/**
|
|
32
32
|
* Check if a given object implements the UpdateFolderRequest interface.
|
|
@@ -26,7 +26,7 @@ export function UpdateFolderRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
26
26
|
}
|
|
27
27
|
return {
|
|
28
28
|
'name': json['name'] == null ? undefined : json['name'],
|
|
29
|
-
'
|
|
29
|
+
'parentFolderId': json['parent_folder_id'] == null ? undefined : json['parent_folder_id'],
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
32
|
export function UpdateFolderRequestToJSON(json) {
|
|
@@ -38,7 +38,7 @@ export function UpdateFolderRequestToJSONTyped(value, ignoreDiscriminator = fals
|
|
|
38
38
|
}
|
|
39
39
|
return {
|
|
40
40
|
'name': value['name'],
|
|
41
|
-
'
|
|
41
|
+
'parent_folder_id': value['parentFolderId'],
|
|
42
42
|
};
|
|
43
43
|
}
|
|
44
44
|
export const UpdateFolderRequestPropertyValidationAttributesMap = {
|
|
@@ -0,0 +1,25 @@
|
|
|
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
|
+
* Supported workflow actions.
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const WorkflowAction: {
|
|
17
|
+
readonly Rerun: "rerun";
|
|
18
|
+
readonly Cancel: "cancel";
|
|
19
|
+
};
|
|
20
|
+
export type WorkflowAction = typeof WorkflowAction[keyof typeof WorkflowAction];
|
|
21
|
+
export declare function instanceOfWorkflowAction(value: any): boolean;
|
|
22
|
+
export declare function WorkflowActionFromJSON(json: any): WorkflowAction;
|
|
23
|
+
export declare function WorkflowActionFromJSONTyped(json: any, ignoreDiscriminator: boolean): WorkflowAction;
|
|
24
|
+
export declare function WorkflowActionToJSON(value?: WorkflowAction | null): any;
|
|
25
|
+
export declare function WorkflowActionToJSONTyped(value: any, ignoreDiscriminator: boolean): WorkflowAction;
|
|
@@ -0,0 +1,43 @@
|
|
|
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
|
+
* Supported workflow actions.
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export const WorkflowAction = {
|
|
19
|
+
Rerun: 'rerun',
|
|
20
|
+
Cancel: 'cancel'
|
|
21
|
+
};
|
|
22
|
+
export function instanceOfWorkflowAction(value) {
|
|
23
|
+
for (const key in WorkflowAction) {
|
|
24
|
+
if (Object.prototype.hasOwnProperty.call(WorkflowAction, key)) {
|
|
25
|
+
if (WorkflowAction[key] === value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
return false;
|
|
31
|
+
}
|
|
32
|
+
export function WorkflowActionFromJSON(json) {
|
|
33
|
+
return WorkflowActionFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
export function WorkflowActionFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
export function WorkflowActionToJSON(value) {
|
|
39
|
+
return value;
|
|
40
|
+
}
|
|
41
|
+
export function WorkflowActionToJSONTyped(value, ignoreDiscriminator) {
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
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
|
+
* POST response for cancel/rerun.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface WorkflowActionResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface WorkflowActionResponse {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof WorkflowActionResponse
|
|
22
|
+
*/
|
|
23
|
+
workflowId: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof WorkflowActionResponse
|
|
28
|
+
*/
|
|
29
|
+
action: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof WorkflowActionResponse
|
|
34
|
+
*/
|
|
35
|
+
message: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the WorkflowActionResponse interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfWorkflowActionResponse(value: object): value is WorkflowActionResponse;
|
|
41
|
+
export declare function WorkflowActionResponseFromJSON(json: any): WorkflowActionResponse;
|
|
42
|
+
export declare function WorkflowActionResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): WorkflowActionResponse;
|
|
43
|
+
export declare function WorkflowActionResponseToJSON(json: any): WorkflowActionResponse;
|
|
44
|
+
export declare function WorkflowActionResponseToJSONTyped(value?: WorkflowActionResponse | null, ignoreDiscriminator?: boolean): any;
|
|
45
|
+
export declare const WorkflowActionResponsePropertyValidationAttributesMap: {
|
|
46
|
+
[property: string]: {
|
|
47
|
+
maxLength?: number;
|
|
48
|
+
minLength?: number;
|
|
49
|
+
pattern?: string;
|
|
50
|
+
maximum?: number;
|
|
51
|
+
exclusiveMaximum?: boolean;
|
|
52
|
+
minimum?: number;
|
|
53
|
+
exclusiveMinimum?: boolean;
|
|
54
|
+
multipleOf?: number;
|
|
55
|
+
maxItems?: number;
|
|
56
|
+
minItems?: number;
|
|
57
|
+
uniqueItems?: boolean;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
@@ -0,0 +1,52 @@
|
|
|
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 WorkflowActionResponse interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfWorkflowActionResponse(value) {
|
|
18
|
+
if (!('workflowId' in value) || value['workflowId'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('action' in value) || value['action'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('message' in value) || value['message'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
export function WorkflowActionResponseFromJSON(json) {
|
|
27
|
+
return WorkflowActionResponseFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
export function WorkflowActionResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
if (json == null) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'workflowId': json['workflow_id'],
|
|
35
|
+
'action': json['action'],
|
|
36
|
+
'message': json['message'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export function WorkflowActionResponseToJSON(json) {
|
|
40
|
+
return WorkflowActionResponseToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
export function WorkflowActionResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'workflow_id': value['workflowId'],
|
|
48
|
+
'action': value['action'],
|
|
49
|
+
'message': value['message'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
export const WorkflowActionResponsePropertyValidationAttributesMap = {};
|
|
@@ -0,0 +1,132 @@
|
|
|
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 { PipelineStatus } from './PipelineStatus';
|
|
13
|
+
/**
|
|
14
|
+
* Single item - adds live Temporal fields.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface WorkflowDetailResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface WorkflowDetailResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof WorkflowDetailResponse
|
|
23
|
+
*/
|
|
24
|
+
workflowId: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof WorkflowDetailResponse
|
|
29
|
+
*/
|
|
30
|
+
documentId: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof WorkflowDetailResponse
|
|
35
|
+
*/
|
|
36
|
+
documentVersionId: string;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {PipelineStatus}
|
|
40
|
+
* @memberof WorkflowDetailResponse
|
|
41
|
+
*/
|
|
42
|
+
status: PipelineStatus;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof WorkflowDetailResponse
|
|
47
|
+
*/
|
|
48
|
+
lastActivity?: string;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof WorkflowDetailResponse
|
|
53
|
+
*/
|
|
54
|
+
error?: string;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {Date}
|
|
58
|
+
* @memberof WorkflowDetailResponse
|
|
59
|
+
*/
|
|
60
|
+
lastRunTimestamp: Date;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {Date}
|
|
64
|
+
* @memberof WorkflowDetailResponse
|
|
65
|
+
*/
|
|
66
|
+
createdAt: Date;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {string}
|
|
70
|
+
* @memberof WorkflowDetailResponse
|
|
71
|
+
*/
|
|
72
|
+
temporalStatus: string;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {Date}
|
|
76
|
+
* @memberof WorkflowDetailResponse
|
|
77
|
+
*/
|
|
78
|
+
startTime: Date;
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @type {Date}
|
|
82
|
+
* @memberof WorkflowDetailResponse
|
|
83
|
+
*/
|
|
84
|
+
closeTime?: Date;
|
|
85
|
+
/**
|
|
86
|
+
*
|
|
87
|
+
* @type {string}
|
|
88
|
+
* @memberof WorkflowDetailResponse
|
|
89
|
+
*/
|
|
90
|
+
workflowType: string;
|
|
91
|
+
/**
|
|
92
|
+
*
|
|
93
|
+
* @type {string}
|
|
94
|
+
* @memberof WorkflowDetailResponse
|
|
95
|
+
*/
|
|
96
|
+
taskQueue: string;
|
|
97
|
+
/**
|
|
98
|
+
*
|
|
99
|
+
* @type {string}
|
|
100
|
+
* @memberof WorkflowDetailResponse
|
|
101
|
+
*/
|
|
102
|
+
runId: string;
|
|
103
|
+
/**
|
|
104
|
+
*
|
|
105
|
+
* @type {number}
|
|
106
|
+
* @memberof WorkflowDetailResponse
|
|
107
|
+
*/
|
|
108
|
+
chunksProcessed?: number;
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* Check if a given object implements the WorkflowDetailResponse interface.
|
|
112
|
+
*/
|
|
113
|
+
export declare function instanceOfWorkflowDetailResponse(value: object): value is WorkflowDetailResponse;
|
|
114
|
+
export declare function WorkflowDetailResponseFromJSON(json: any): WorkflowDetailResponse;
|
|
115
|
+
export declare function WorkflowDetailResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): WorkflowDetailResponse;
|
|
116
|
+
export declare function WorkflowDetailResponseToJSON(json: any): WorkflowDetailResponse;
|
|
117
|
+
export declare function WorkflowDetailResponseToJSONTyped(value?: WorkflowDetailResponse | null, ignoreDiscriminator?: boolean): any;
|
|
118
|
+
export declare const WorkflowDetailResponsePropertyValidationAttributesMap: {
|
|
119
|
+
[property: string]: {
|
|
120
|
+
maxLength?: number;
|
|
121
|
+
minLength?: number;
|
|
122
|
+
pattern?: string;
|
|
123
|
+
maximum?: number;
|
|
124
|
+
exclusiveMaximum?: boolean;
|
|
125
|
+
minimum?: number;
|
|
126
|
+
exclusiveMinimum?: boolean;
|
|
127
|
+
multipleOf?: number;
|
|
128
|
+
maxItems?: number;
|
|
129
|
+
minItems?: number;
|
|
130
|
+
uniqueItems?: boolean;
|
|
131
|
+
};
|
|
132
|
+
};
|