@knowledge-stack/ksapi 1.15.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.
Files changed (123) hide show
  1. package/.openapi-generator/FILES +11 -0
  2. package/README.md +2 -2
  3. package/dist/apis/DocumentVersionsApi.d.ts +32 -1
  4. package/dist/apis/DocumentVersionsApi.js +37 -0
  5. package/dist/apis/DocumentsApi.d.ts +44 -11
  6. package/dist/apis/DocumentsApi.js +65 -6
  7. package/dist/apis/FoldersApi.d.ts +10 -10
  8. package/dist/apis/FoldersApi.js +6 -6
  9. package/dist/apis/TenantsApi.d.ts +4 -4
  10. package/dist/apis/TenantsApi.js +2 -2
  11. package/dist/apis/WorkflowsApi.d.ts +117 -0
  12. package/dist/apis/WorkflowsApi.js +137 -0
  13. package/dist/apis/index.d.ts +1 -0
  14. package/dist/apis/index.js +1 -0
  15. package/dist/esm/apis/DocumentVersionsApi.d.ts +32 -1
  16. package/dist/esm/apis/DocumentVersionsApi.js +38 -1
  17. package/dist/esm/apis/DocumentsApi.d.ts +44 -11
  18. package/dist/esm/apis/DocumentsApi.js +66 -7
  19. package/dist/esm/apis/FoldersApi.d.ts +10 -10
  20. package/dist/esm/apis/FoldersApi.js +6 -6
  21. package/dist/esm/apis/TenantsApi.d.ts +4 -4
  22. package/dist/esm/apis/TenantsApi.js +2 -2
  23. package/dist/esm/apis/WorkflowsApi.d.ts +117 -0
  24. package/dist/esm/apis/WorkflowsApi.js +133 -0
  25. package/dist/esm/apis/index.d.ts +1 -0
  26. package/dist/esm/apis/index.js +1 -0
  27. package/dist/esm/models/CreateDocumentRequest.d.ts +2 -2
  28. package/dist/esm/models/CreateDocumentRequest.js +3 -3
  29. package/dist/esm/models/CreateFolderRequest.d.ts +2 -2
  30. package/dist/esm/models/CreateFolderRequest.js +3 -3
  31. package/dist/esm/models/DocumentResponse.d.ts +2 -2
  32. package/dist/esm/models/DocumentResponse.js +3 -3
  33. package/dist/esm/models/DocumentVersionMetadata.d.ts +89 -0
  34. package/dist/esm/models/DocumentVersionMetadata.js +55 -0
  35. package/dist/esm/models/DocumentVersionMetadataUpdate.d.ts +87 -0
  36. package/dist/esm/models/DocumentVersionMetadataUpdate.js +55 -0
  37. package/dist/esm/models/DocumentVersionResponse.d.ts +13 -0
  38. package/dist/esm/models/DocumentVersionResponse.js +5 -0
  39. package/dist/esm/models/FolderResponse.d.ts +2 -2
  40. package/dist/esm/models/FolderResponse.js +3 -3
  41. package/dist/esm/models/IngestDocumentResponse.d.ts +59 -0
  42. package/dist/esm/models/IngestDocumentResponse.js +52 -0
  43. package/dist/esm/models/PaginatedResponseWorkflowSummaryResponse.d.ts +66 -0
  44. package/dist/esm/models/PaginatedResponseWorkflowSummaryResponse.js +70 -0
  45. package/dist/esm/models/PipelineState.d.ts +78 -0
  46. package/dist/esm/models/PipelineState.js +57 -0
  47. package/dist/esm/models/PipelineStatus.d.ts +28 -0
  48. package/dist/esm/models/PipelineStatus.js +46 -0
  49. package/dist/esm/models/UpdateDocumentRequest.d.ts +2 -2
  50. package/dist/esm/models/UpdateDocumentRequest.js +2 -2
  51. package/dist/esm/models/UpdateFolderRequest.d.ts +2 -2
  52. package/dist/esm/models/UpdateFolderRequest.js +2 -2
  53. package/dist/esm/models/WorkflowAction.d.ts +25 -0
  54. package/dist/esm/models/WorkflowAction.js +43 -0
  55. package/dist/esm/models/WorkflowActionResponse.d.ts +59 -0
  56. package/dist/esm/models/WorkflowActionResponse.js +52 -0
  57. package/dist/esm/models/WorkflowDetailResponse.d.ts +132 -0
  58. package/dist/esm/models/WorkflowDetailResponse.js +93 -0
  59. package/dist/esm/models/WorkflowSummaryResponse.d.ts +90 -0
  60. package/dist/esm/models/WorkflowSummaryResponse.js +69 -0
  61. package/dist/esm/models/index.d.ts +10 -0
  62. package/dist/esm/models/index.js +10 -0
  63. package/dist/models/CreateDocumentRequest.d.ts +2 -2
  64. package/dist/models/CreateDocumentRequest.js +3 -3
  65. package/dist/models/CreateFolderRequest.d.ts +2 -2
  66. package/dist/models/CreateFolderRequest.js +3 -3
  67. package/dist/models/DocumentResponse.d.ts +2 -2
  68. package/dist/models/DocumentResponse.js +3 -3
  69. package/dist/models/DocumentVersionMetadata.d.ts +89 -0
  70. package/dist/models/DocumentVersionMetadata.js +63 -0
  71. package/dist/models/DocumentVersionMetadataUpdate.d.ts +87 -0
  72. package/dist/models/DocumentVersionMetadataUpdate.js +63 -0
  73. package/dist/models/DocumentVersionResponse.d.ts +13 -0
  74. package/dist/models/DocumentVersionResponse.js +5 -0
  75. package/dist/models/FolderResponse.d.ts +2 -2
  76. package/dist/models/FolderResponse.js +3 -3
  77. package/dist/models/IngestDocumentResponse.d.ts +59 -0
  78. package/dist/models/IngestDocumentResponse.js +60 -0
  79. package/dist/models/PaginatedResponseWorkflowSummaryResponse.d.ts +66 -0
  80. package/dist/models/PaginatedResponseWorkflowSummaryResponse.js +78 -0
  81. package/dist/models/PipelineState.d.ts +78 -0
  82. package/dist/models/PipelineState.js +65 -0
  83. package/dist/models/PipelineStatus.d.ts +28 -0
  84. package/dist/models/PipelineStatus.js +54 -0
  85. package/dist/models/UpdateDocumentRequest.d.ts +2 -2
  86. package/dist/models/UpdateDocumentRequest.js +2 -2
  87. package/dist/models/UpdateFolderRequest.d.ts +2 -2
  88. package/dist/models/UpdateFolderRequest.js +2 -2
  89. package/dist/models/WorkflowAction.d.ts +25 -0
  90. package/dist/models/WorkflowAction.js +51 -0
  91. package/dist/models/WorkflowActionResponse.d.ts +59 -0
  92. package/dist/models/WorkflowActionResponse.js +60 -0
  93. package/dist/models/WorkflowDetailResponse.d.ts +132 -0
  94. package/dist/models/WorkflowDetailResponse.js +101 -0
  95. package/dist/models/WorkflowSummaryResponse.d.ts +90 -0
  96. package/dist/models/WorkflowSummaryResponse.js +77 -0
  97. package/dist/models/index.d.ts +10 -0
  98. package/dist/models/index.js +10 -0
  99. package/package.json +1 -1
  100. package/src/apis/DocumentVersionsApi.ts +76 -0
  101. package/src/apis/DocumentsApi.ts +115 -12
  102. package/src/apis/FoldersApi.ts +12 -12
  103. package/src/apis/TenantsApi.ts +4 -4
  104. package/src/apis/WorkflowsApi.ts +249 -0
  105. package/src/apis/index.ts +1 -0
  106. package/src/models/CreateDocumentRequest.ts +5 -5
  107. package/src/models/CreateFolderRequest.ts +5 -5
  108. package/src/models/DocumentResponse.ts +5 -5
  109. package/src/models/DocumentVersionMetadata.ts +143 -0
  110. package/src/models/DocumentVersionMetadataUpdate.ts +141 -0
  111. package/src/models/DocumentVersionResponse.ts +24 -0
  112. package/src/models/FolderResponse.ts +5 -5
  113. package/src/models/IngestDocumentResponse.ts +101 -0
  114. package/src/models/PaginatedResponseWorkflowSummaryResponse.ts +130 -0
  115. package/src/models/PipelineState.ts +134 -0
  116. package/src/models/PipelineStatus.ts +56 -0
  117. package/src/models/UpdateDocumentRequest.ts +4 -4
  118. package/src/models/UpdateFolderRequest.ts +4 -4
  119. package/src/models/WorkflowAction.ts +53 -0
  120. package/src/models/WorkflowActionResponse.ts +101 -0
  121. package/src/models/WorkflowDetailResponse.ts +215 -0
  122. package/src/models/WorkflowSummaryResponse.ts +154 -0
  123. package/src/models/index.ts +10 -0
@@ -0,0 +1,28 @@
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
+ * Status of the ingestion pipeline workflow.
14
+ * @export
15
+ */
16
+ export declare const PipelineStatus: {
17
+ readonly Pending: "pending";
18
+ readonly Processing: "processing";
19
+ readonly Completed: "completed";
20
+ readonly Failed: "failed";
21
+ readonly Cancelled: "cancelled";
22
+ };
23
+ export type PipelineStatus = typeof PipelineStatus[keyof typeof PipelineStatus];
24
+ export declare function instanceOfPipelineStatus(value: any): boolean;
25
+ export declare function PipelineStatusFromJSON(json: any): PipelineStatus;
26
+ export declare function PipelineStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): PipelineStatus;
27
+ export declare function PipelineStatusToJSON(value?: PipelineStatus | null): any;
28
+ export declare function PipelineStatusToJSONTyped(value: any, ignoreDiscriminator: boolean): PipelineStatus;
@@ -0,0 +1,46 @@
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
+ * Status of the ingestion pipeline workflow.
16
+ * @export
17
+ */
18
+ export const PipelineStatus = {
19
+ Pending: 'pending',
20
+ Processing: 'processing',
21
+ Completed: 'completed',
22
+ Failed: 'failed',
23
+ Cancelled: 'cancelled'
24
+ };
25
+ export function instanceOfPipelineStatus(value) {
26
+ for (const key in PipelineStatus) {
27
+ if (Object.prototype.hasOwnProperty.call(PipelineStatus, key)) {
28
+ if (PipelineStatus[key] === value) {
29
+ return true;
30
+ }
31
+ }
32
+ }
33
+ return false;
34
+ }
35
+ export function PipelineStatusFromJSON(json) {
36
+ return PipelineStatusFromJSONTyped(json, false);
37
+ }
38
+ export function PipelineStatusFromJSONTyped(json, ignoreDiscriminator) {
39
+ return json;
40
+ }
41
+ export function PipelineStatusToJSON(value) {
42
+ return value;
43
+ }
44
+ export function PipelineStatusToJSONTyped(value, ignoreDiscriminator) {
45
+ return value;
46
+ }
@@ -22,11 +22,11 @@ export interface UpdateDocumentRequest {
22
22
  */
23
23
  name?: string;
24
24
  /**
25
- * New parent folder PathPart ID (for move)
25
+ * New parent folder ID (for move)
26
26
  * @type {string}
27
27
  * @memberof UpdateDocumentRequest
28
28
  */
29
- parentId?: string;
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
- 'parentId': json['parent_id'] == null ? undefined : json['parent_id'],
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
- 'parent_id': value['parentId'],
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 PathPart ID (for move)
25
+ * New parent folder ID (for move)
26
26
  * @type {string}
27
27
  * @memberof UpdateFolderRequest
28
28
  */
29
- parentId?: string;
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
- 'parentId': json['parent_id'] == null ? undefined : json['parent_id'],
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
- 'parent_id': value['parentId'],
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
+ };
@@ -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
+ };