@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
|
@@ -0,0 +1,93 @@
|
|
|
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 { PipelineStatusFromJSON, PipelineStatusToJSON, } from './PipelineStatus';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the WorkflowDetailResponse interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfWorkflowDetailResponse(value) {
|
|
19
|
+
if (!('workflowId' in value) || value['workflowId'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('documentId' in value) || value['documentId'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('documentVersionId' in value) || value['documentVersionId'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('lastRunTimestamp' in value) || value['lastRunTimestamp'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('temporalStatus' in value) || value['temporalStatus'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('startTime' in value) || value['startTime'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('workflowType' in value) || value['workflowType'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('taskQueue' in value) || value['taskQueue'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('runId' in value) || value['runId'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
export function WorkflowDetailResponseFromJSON(json) {
|
|
44
|
+
return WorkflowDetailResponseFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
export function WorkflowDetailResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
47
|
+
if (json == null) {
|
|
48
|
+
return json;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'workflowId': json['workflow_id'],
|
|
52
|
+
'documentId': json['document_id'],
|
|
53
|
+
'documentVersionId': json['document_version_id'],
|
|
54
|
+
'status': PipelineStatusFromJSON(json['status']),
|
|
55
|
+
'lastActivity': json['last_activity'] == null ? undefined : json['last_activity'],
|
|
56
|
+
'error': json['error'] == null ? undefined : json['error'],
|
|
57
|
+
'lastRunTimestamp': (new Date(json['last_run_timestamp'])),
|
|
58
|
+
'createdAt': (new Date(json['created_at'])),
|
|
59
|
+
'temporalStatus': json['temporal_status'],
|
|
60
|
+
'startTime': (new Date(json['start_time'])),
|
|
61
|
+
'closeTime': json['close_time'] == null ? undefined : (new Date(json['close_time'])),
|
|
62
|
+
'workflowType': json['workflow_type'],
|
|
63
|
+
'taskQueue': json['task_queue'],
|
|
64
|
+
'runId': json['run_id'],
|
|
65
|
+
'chunksProcessed': json['chunks_processed'] == null ? undefined : json['chunks_processed'],
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
export function WorkflowDetailResponseToJSON(json) {
|
|
69
|
+
return WorkflowDetailResponseToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
export function WorkflowDetailResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
72
|
+
if (value == null) {
|
|
73
|
+
return value;
|
|
74
|
+
}
|
|
75
|
+
return {
|
|
76
|
+
'workflow_id': value['workflowId'],
|
|
77
|
+
'document_id': value['documentId'],
|
|
78
|
+
'document_version_id': value['documentVersionId'],
|
|
79
|
+
'status': PipelineStatusToJSON(value['status']),
|
|
80
|
+
'last_activity': value['lastActivity'],
|
|
81
|
+
'error': value['error'],
|
|
82
|
+
'last_run_timestamp': value['lastRunTimestamp'].toISOString(),
|
|
83
|
+
'created_at': value['createdAt'].toISOString(),
|
|
84
|
+
'temporal_status': value['temporalStatus'],
|
|
85
|
+
'start_time': value['startTime'].toISOString(),
|
|
86
|
+
'close_time': value['closeTime'] == null ? value['closeTime'] : value['closeTime'].toISOString(),
|
|
87
|
+
'workflow_type': value['workflowType'],
|
|
88
|
+
'task_queue': value['taskQueue'],
|
|
89
|
+
'run_id': value['runId'],
|
|
90
|
+
'chunks_processed': value['chunksProcessed'],
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
export const WorkflowDetailResponsePropertyValidationAttributesMap = {};
|
|
@@ -0,0 +1,90 @@
|
|
|
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
|
+
* List item - DB-only fields, no Temporal call per item.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface WorkflowSummaryResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface WorkflowSummaryResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof WorkflowSummaryResponse
|
|
23
|
+
*/
|
|
24
|
+
workflowId: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof WorkflowSummaryResponse
|
|
29
|
+
*/
|
|
30
|
+
documentId: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof WorkflowSummaryResponse
|
|
35
|
+
*/
|
|
36
|
+
documentVersionId: string;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {PipelineStatus}
|
|
40
|
+
* @memberof WorkflowSummaryResponse
|
|
41
|
+
*/
|
|
42
|
+
status: PipelineStatus;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof WorkflowSummaryResponse
|
|
47
|
+
*/
|
|
48
|
+
lastActivity?: string;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof WorkflowSummaryResponse
|
|
53
|
+
*/
|
|
54
|
+
error?: string;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {Date}
|
|
58
|
+
* @memberof WorkflowSummaryResponse
|
|
59
|
+
*/
|
|
60
|
+
lastRunTimestamp: Date;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {Date}
|
|
64
|
+
* @memberof WorkflowSummaryResponse
|
|
65
|
+
*/
|
|
66
|
+
createdAt: Date;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Check if a given object implements the WorkflowSummaryResponse interface.
|
|
70
|
+
*/
|
|
71
|
+
export declare function instanceOfWorkflowSummaryResponse(value: object): value is WorkflowSummaryResponse;
|
|
72
|
+
export declare function WorkflowSummaryResponseFromJSON(json: any): WorkflowSummaryResponse;
|
|
73
|
+
export declare function WorkflowSummaryResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): WorkflowSummaryResponse;
|
|
74
|
+
export declare function WorkflowSummaryResponseToJSON(json: any): WorkflowSummaryResponse;
|
|
75
|
+
export declare function WorkflowSummaryResponseToJSONTyped(value?: WorkflowSummaryResponse | null, ignoreDiscriminator?: boolean): any;
|
|
76
|
+
export declare const WorkflowSummaryResponsePropertyValidationAttributesMap: {
|
|
77
|
+
[property: string]: {
|
|
78
|
+
maxLength?: number;
|
|
79
|
+
minLength?: number;
|
|
80
|
+
pattern?: string;
|
|
81
|
+
maximum?: number;
|
|
82
|
+
exclusiveMaximum?: boolean;
|
|
83
|
+
minimum?: number;
|
|
84
|
+
exclusiveMinimum?: boolean;
|
|
85
|
+
multipleOf?: number;
|
|
86
|
+
maxItems?: number;
|
|
87
|
+
minItems?: number;
|
|
88
|
+
uniqueItems?: boolean;
|
|
89
|
+
};
|
|
90
|
+
};
|
|
@@ -0,0 +1,69 @@
|
|
|
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 { PipelineStatusFromJSON, PipelineStatusToJSON, } from './PipelineStatus';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the WorkflowSummaryResponse interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfWorkflowSummaryResponse(value) {
|
|
19
|
+
if (!('workflowId' in value) || value['workflowId'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('documentId' in value) || value['documentId'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('documentVersionId' in value) || value['documentVersionId'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('lastRunTimestamp' in value) || value['lastRunTimestamp'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
export function WorkflowSummaryResponseFromJSON(json) {
|
|
34
|
+
return WorkflowSummaryResponseFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function WorkflowSummaryResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'workflowId': json['workflow_id'],
|
|
42
|
+
'documentId': json['document_id'],
|
|
43
|
+
'documentVersionId': json['document_version_id'],
|
|
44
|
+
'status': PipelineStatusFromJSON(json['status']),
|
|
45
|
+
'lastActivity': json['last_activity'] == null ? undefined : json['last_activity'],
|
|
46
|
+
'error': json['error'] == null ? undefined : json['error'],
|
|
47
|
+
'lastRunTimestamp': (new Date(json['last_run_timestamp'])),
|
|
48
|
+
'createdAt': (new Date(json['created_at'])),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
export function WorkflowSummaryResponseToJSON(json) {
|
|
52
|
+
return WorkflowSummaryResponseToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
export function WorkflowSummaryResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
55
|
+
if (value == null) {
|
|
56
|
+
return value;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'workflow_id': value['workflowId'],
|
|
60
|
+
'document_id': value['documentId'],
|
|
61
|
+
'document_version_id': value['documentVersionId'],
|
|
62
|
+
'status': PipelineStatusToJSON(value['status']),
|
|
63
|
+
'last_activity': value['lastActivity'],
|
|
64
|
+
'error': value['error'],
|
|
65
|
+
'last_run_timestamp': value['lastRunTimestamp'].toISOString(),
|
|
66
|
+
'created_at': value['createdAt'].toISOString(),
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
export const WorkflowSummaryResponsePropertyValidationAttributesMap = {};
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
export * from './AssumeUserRequest';
|
|
2
|
-
export * from './AssumeUserResponse';
|
|
3
1
|
export * from './ChunkLineageResponse';
|
|
4
2
|
export * from './ChunkMetadataInput';
|
|
5
3
|
export * from './ChunkMetadataOutput';
|
|
@@ -54,6 +52,7 @@ export * from './PaginatedResponseTenantResponse';
|
|
|
54
52
|
export * from './PaginatedResponseTenantUserInTenantResponse';
|
|
55
53
|
export * from './PaginatedResponseThreadMessageResponse';
|
|
56
54
|
export * from './PaginatedResponseThreadResponse';
|
|
55
|
+
export * from './PaginatedResponseWorkflowSummaryResponse';
|
|
57
56
|
export * from './PartType';
|
|
58
57
|
export * from './PasswordResetRequest';
|
|
59
58
|
export * from './PasswordResetWithTokenRequest';
|
|
@@ -89,3 +88,7 @@ export * from './UpdateUserRequest';
|
|
|
89
88
|
export * from './UserResponse';
|
|
90
89
|
export * from './ValidationError';
|
|
91
90
|
export * from './ValidationErrorLocInner';
|
|
91
|
+
export * from './WorkflowAction';
|
|
92
|
+
export * from './WorkflowActionResponse';
|
|
93
|
+
export * from './WorkflowDetailResponse';
|
|
94
|
+
export * from './WorkflowSummaryResponse';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
-
export * from './AssumeUserRequest';
|
|
4
|
-
export * from './AssumeUserResponse';
|
|
5
3
|
export * from './ChunkLineageResponse';
|
|
6
4
|
export * from './ChunkMetadataInput';
|
|
7
5
|
export * from './ChunkMetadataOutput';
|
|
@@ -56,6 +54,7 @@ export * from './PaginatedResponseTenantResponse';
|
|
|
56
54
|
export * from './PaginatedResponseTenantUserInTenantResponse';
|
|
57
55
|
export * from './PaginatedResponseThreadMessageResponse';
|
|
58
56
|
export * from './PaginatedResponseThreadResponse';
|
|
57
|
+
export * from './PaginatedResponseWorkflowSummaryResponse';
|
|
59
58
|
export * from './PartType';
|
|
60
59
|
export * from './PasswordResetRequest';
|
|
61
60
|
export * from './PasswordResetWithTokenRequest';
|
|
@@ -91,3 +90,7 @@ export * from './UpdateUserRequest';
|
|
|
91
90
|
export * from './UserResponse';
|
|
92
91
|
export * from './ValidationError';
|
|
93
92
|
export * from './ValidationErrorLocInner';
|
|
93
|
+
export * from './WorkflowAction';
|
|
94
|
+
export * from './WorkflowActionResponse';
|
|
95
|
+
export * from './WorkflowDetailResponse';
|
|
96
|
+
export * from './WorkflowSummaryResponse';
|
|
@@ -24,11 +24,11 @@ export interface CreateDocumentRequest {
|
|
|
24
24
|
*/
|
|
25
25
|
name: string;
|
|
26
26
|
/**
|
|
27
|
-
* Parent folder
|
|
27
|
+
* Parent folder ID
|
|
28
28
|
* @type {string}
|
|
29
29
|
* @memberof CreateDocumentRequest
|
|
30
30
|
*/
|
|
31
|
-
|
|
31
|
+
parentFolderId: string;
|
|
32
32
|
/**
|
|
33
33
|
* Type of document (PDF, UNKNOWN, etc.)
|
|
34
34
|
* @type {DocumentType}
|
|
@@ -27,7 +27,7 @@ const DocumentType_1 = require("./DocumentType");
|
|
|
27
27
|
function instanceOfCreateDocumentRequest(value) {
|
|
28
28
|
if (!('name' in value) || value['name'] === undefined)
|
|
29
29
|
return false;
|
|
30
|
-
if (!('
|
|
30
|
+
if (!('parentFolderId' in value) || value['parentFolderId'] === undefined)
|
|
31
31
|
return false;
|
|
32
32
|
if (!('documentType' in value) || value['documentType'] === undefined)
|
|
33
33
|
return false;
|
|
@@ -44,7 +44,7 @@ function CreateDocumentRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
44
44
|
}
|
|
45
45
|
return {
|
|
46
46
|
'name': json['name'],
|
|
47
|
-
'
|
|
47
|
+
'parentFolderId': json['parent_folder_id'],
|
|
48
48
|
'documentType': (0, DocumentType_1.DocumentTypeFromJSON)(json['document_type']),
|
|
49
49
|
'documentOrigin': (0, DocumentOrigin_1.DocumentOriginFromJSON)(json['document_origin']),
|
|
50
50
|
};
|
|
@@ -58,7 +58,7 @@ function CreateDocumentRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
58
58
|
}
|
|
59
59
|
return {
|
|
60
60
|
'name': value['name'],
|
|
61
|
-
'
|
|
61
|
+
'parent_folder_id': value['parentFolderId'],
|
|
62
62
|
'document_type': (0, DocumentType_1.DocumentTypeToJSON)(value['documentType']),
|
|
63
63
|
'document_origin': (0, DocumentOrigin_1.DocumentOriginToJSON)(value['documentOrigin']),
|
|
64
64
|
};
|
|
@@ -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.
|
|
@@ -25,7 +25,7 @@ exports.CreateFolderRequestToJSONTyped = CreateFolderRequestToJSONTyped;
|
|
|
25
25
|
function instanceOfCreateFolderRequest(value) {
|
|
26
26
|
if (!('name' in value) || value['name'] === undefined)
|
|
27
27
|
return false;
|
|
28
|
-
if (!('
|
|
28
|
+
if (!('parentFolderId' in value) || value['parentFolderId'] === undefined)
|
|
29
29
|
return false;
|
|
30
30
|
return true;
|
|
31
31
|
}
|
|
@@ -38,7 +38,7 @@ function CreateFolderRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
38
|
}
|
|
39
39
|
return {
|
|
40
40
|
'name': json['name'],
|
|
41
|
-
'
|
|
41
|
+
'parentFolderId': json['parent_folder_id'],
|
|
42
42
|
};
|
|
43
43
|
}
|
|
44
44
|
function CreateFolderRequestToJSON(json) {
|
|
@@ -50,7 +50,7 @@ function CreateFolderRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
50
50
|
}
|
|
51
51
|
return {
|
|
52
52
|
'name': value['name'],
|
|
53
|
-
'
|
|
53
|
+
'parent_folder_id': value['parentFolderId'],
|
|
54
54
|
};
|
|
55
55
|
}
|
|
56
56
|
exports.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}
|
|
@@ -32,7 +32,7 @@ function instanceOfDocumentResponse(value) {
|
|
|
32
32
|
return false;
|
|
33
33
|
if (!('name' in value) || value['name'] === undefined)
|
|
34
34
|
return false;
|
|
35
|
-
if (!('
|
|
35
|
+
if (!('parentFolderId' in value) || value['parentFolderId'] === undefined)
|
|
36
36
|
return false;
|
|
37
37
|
if (!('documentType' in value) || value['documentType'] === undefined)
|
|
38
38
|
return false;
|
|
@@ -63,7 +63,7 @@ function DocumentResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
63
63
|
'id': json['id'],
|
|
64
64
|
'pathPartId': json['path_part_id'],
|
|
65
65
|
'name': json['name'],
|
|
66
|
-
'
|
|
66
|
+
'parentFolderId': json['parent_folder_id'],
|
|
67
67
|
'documentType': (0, DocumentType_1.DocumentTypeFromJSON)(json['document_type']),
|
|
68
68
|
'documentOrigin': (0, DocumentOrigin_1.DocumentOriginFromJSON)(json['document_origin']),
|
|
69
69
|
'activeVersionId': json['active_version_id'],
|
|
@@ -85,7 +85,7 @@ function DocumentResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
85
85
|
'id': value['id'],
|
|
86
86
|
'path_part_id': value['pathPartId'],
|
|
87
87
|
'name': value['name'],
|
|
88
|
-
'
|
|
88
|
+
'parent_folder_id': value['parentFolderId'],
|
|
89
89
|
'document_type': (0, DocumentType_1.DocumentTypeToJSON)(value['documentType']),
|
|
90
90
|
'document_origin': (0, DocumentOrigin_1.DocumentOriginToJSON)(value['documentOrigin']),
|
|
91
91
|
'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}
|
|
@@ -29,7 +29,7 @@ function instanceOfFolderResponse(value) {
|
|
|
29
29
|
return false;
|
|
30
30
|
if (!('name' in value) || value['name'] === undefined)
|
|
31
31
|
return false;
|
|
32
|
-
if (!('
|
|
32
|
+
if (!('parentFolderId' in value) || value['parentFolderId'] === undefined)
|
|
33
33
|
return false;
|
|
34
34
|
if (!('materializedPath' in value) || value['materializedPath'] === undefined)
|
|
35
35
|
return false;
|
|
@@ -52,7 +52,7 @@ function FolderResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
52
52
|
'id': json['id'],
|
|
53
53
|
'pathPartId': json['path_part_id'],
|
|
54
54
|
'name': json['name'],
|
|
55
|
-
'
|
|
55
|
+
'parentFolderId': json['parent_folder_id'],
|
|
56
56
|
'materializedPath': json['materialized_path'],
|
|
57
57
|
'tenantId': json['tenant_id'],
|
|
58
58
|
'createdAt': (new Date(json['created_at'])),
|
|
@@ -70,7 +70,7 @@ function FolderResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
70
70
|
'id': value['id'],
|
|
71
71
|
'path_part_id': value['pathPartId'],
|
|
72
72
|
'name': value['name'],
|
|
73
|
-
'
|
|
73
|
+
'parent_folder_id': value['parentFolderId'],
|
|
74
74
|
'materialized_path': value['materializedPath'],
|
|
75
75
|
'tenant_id': value['tenantId'],
|
|
76
76
|
'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,78 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Knowledge Stack API
|
|
6
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.PaginatedResponseWorkflowSummaryResponsePropertyValidationAttributesMap = void 0;
|
|
17
|
+
exports.instanceOfPaginatedResponseWorkflowSummaryResponse = instanceOfPaginatedResponseWorkflowSummaryResponse;
|
|
18
|
+
exports.PaginatedResponseWorkflowSummaryResponseFromJSON = PaginatedResponseWorkflowSummaryResponseFromJSON;
|
|
19
|
+
exports.PaginatedResponseWorkflowSummaryResponseFromJSONTyped = PaginatedResponseWorkflowSummaryResponseFromJSONTyped;
|
|
20
|
+
exports.PaginatedResponseWorkflowSummaryResponseToJSON = PaginatedResponseWorkflowSummaryResponseToJSON;
|
|
21
|
+
exports.PaginatedResponseWorkflowSummaryResponseToJSONTyped = PaginatedResponseWorkflowSummaryResponseToJSONTyped;
|
|
22
|
+
const WorkflowSummaryResponse_1 = require("./WorkflowSummaryResponse");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the PaginatedResponseWorkflowSummaryResponse interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfPaginatedResponseWorkflowSummaryResponse(value) {
|
|
27
|
+
if (!('items' in value) || value['items'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('total' in value) || value['total'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('limit' in value) || value['limit'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('offset' in value) || value['offset'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
function PaginatedResponseWorkflowSummaryResponseFromJSON(json) {
|
|
38
|
+
return PaginatedResponseWorkflowSummaryResponseFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
function PaginatedResponseWorkflowSummaryResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
+
if (json == null) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'items': (json['items'].map(WorkflowSummaryResponse_1.WorkflowSummaryResponseFromJSON)),
|
|
46
|
+
'total': json['total'],
|
|
47
|
+
'limit': json['limit'],
|
|
48
|
+
'offset': json['offset'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
function PaginatedResponseWorkflowSummaryResponseToJSON(json) {
|
|
52
|
+
return PaginatedResponseWorkflowSummaryResponseToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
function PaginatedResponseWorkflowSummaryResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
55
|
+
if (value == null) {
|
|
56
|
+
return value;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'items': (value['items'].map(WorkflowSummaryResponse_1.WorkflowSummaryResponseToJSON)),
|
|
60
|
+
'total': value['total'],
|
|
61
|
+
'limit': value['limit'],
|
|
62
|
+
'offset': value['offset'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
exports.PaginatedResponseWorkflowSummaryResponsePropertyValidationAttributesMap = {
|
|
66
|
+
total: {
|
|
67
|
+
minimum: 0,
|
|
68
|
+
exclusiveMinimum: false,
|
|
69
|
+
},
|
|
70
|
+
limit: {
|
|
71
|
+
minimum: 1,
|
|
72
|
+
exclusiveMinimum: false,
|
|
73
|
+
},
|
|
74
|
+
offset: {
|
|
75
|
+
minimum: 0,
|
|
76
|
+
exclusiveMinimum: false,
|
|
77
|
+
},
|
|
78
|
+
};
|
|
@@ -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;
|
|
@@ -27,7 +27,8 @@ exports.PipelineStatus = {
|
|
|
27
27
|
Pending: 'pending',
|
|
28
28
|
Processing: 'processing',
|
|
29
29
|
Completed: 'completed',
|
|
30
|
-
Failed: 'failed'
|
|
30
|
+
Failed: 'failed',
|
|
31
|
+
Cancelled: 'cancelled'
|
|
31
32
|
};
|
|
32
33
|
function instanceOfPipelineStatus(value) {
|
|
33
34
|
for (const key in exports.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}
|
|
@@ -34,7 +34,7 @@ function UpdateDocumentRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
34
34
|
}
|
|
35
35
|
return {
|
|
36
36
|
'name': json['name'] == null ? undefined : json['name'],
|
|
37
|
-
'
|
|
37
|
+
'parentFolderId': json['parent_folder_id'] == null ? undefined : json['parent_folder_id'],
|
|
38
38
|
'activeVersionId': json['active_version_id'] == null ? undefined : json['active_version_id'],
|
|
39
39
|
};
|
|
40
40
|
}
|
|
@@ -47,7 +47,7 @@ function UpdateDocumentRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
47
47
|
}
|
|
48
48
|
return {
|
|
49
49
|
'name': value['name'],
|
|
50
|
-
'
|
|
50
|
+
'parent_folder_id': value['parentFolderId'],
|
|
51
51
|
'active_version_id': value['activeVersionId'],
|
|
52
52
|
};
|
|
53
53
|
}
|