@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
@@ -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 (!('parentId' in value) || value['parentId'] === undefined)
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
- 'parentId': json['parent_id'],
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
- 'parent_id': value['parentId'],
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,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
+ * Response with workflow execution details.
14
+ * @export
15
+ * @interface IngestDocumentResponse
16
+ */
17
+ export interface IngestDocumentResponse {
18
+ /**
19
+ * Temporal workflow ID
20
+ * @type {string}
21
+ * @memberof IngestDocumentResponse
22
+ */
23
+ workflowId: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof IngestDocumentResponse
28
+ */
29
+ documentId: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof IngestDocumentResponse
34
+ */
35
+ documentVersionId: string;
36
+ }
37
+ /**
38
+ * Check if a given object implements the IngestDocumentResponse interface.
39
+ */
40
+ export declare function instanceOfIngestDocumentResponse(value: object): value is IngestDocumentResponse;
41
+ export declare function IngestDocumentResponseFromJSON(json: any): IngestDocumentResponse;
42
+ export declare function IngestDocumentResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): IngestDocumentResponse;
43
+ export declare function IngestDocumentResponseToJSON(json: any): IngestDocumentResponse;
44
+ export declare function IngestDocumentResponseToJSONTyped(value?: IngestDocumentResponse | null, ignoreDiscriminator?: boolean): any;
45
+ export declare const IngestDocumentResponsePropertyValidationAttributesMap: {
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,60 @@
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.IngestDocumentResponsePropertyValidationAttributesMap = void 0;
17
+ exports.instanceOfIngestDocumentResponse = instanceOfIngestDocumentResponse;
18
+ exports.IngestDocumentResponseFromJSON = IngestDocumentResponseFromJSON;
19
+ exports.IngestDocumentResponseFromJSONTyped = IngestDocumentResponseFromJSONTyped;
20
+ exports.IngestDocumentResponseToJSON = IngestDocumentResponseToJSON;
21
+ exports.IngestDocumentResponseToJSONTyped = IngestDocumentResponseToJSONTyped;
22
+ /**
23
+ * Check if a given object implements the IngestDocumentResponse interface.
24
+ */
25
+ function instanceOfIngestDocumentResponse(value) {
26
+ if (!('workflowId' in value) || value['workflowId'] === undefined)
27
+ return false;
28
+ if (!('documentId' in value) || value['documentId'] === undefined)
29
+ return false;
30
+ if (!('documentVersionId' in value) || value['documentVersionId'] === undefined)
31
+ return false;
32
+ return true;
33
+ }
34
+ function IngestDocumentResponseFromJSON(json) {
35
+ return IngestDocumentResponseFromJSONTyped(json, false);
36
+ }
37
+ function IngestDocumentResponseFromJSONTyped(json, ignoreDiscriminator) {
38
+ if (json == null) {
39
+ return json;
40
+ }
41
+ return {
42
+ 'workflowId': json['workflow_id'],
43
+ 'documentId': json['document_id'],
44
+ 'documentVersionId': json['document_version_id'],
45
+ };
46
+ }
47
+ function IngestDocumentResponseToJSON(json) {
48
+ return IngestDocumentResponseToJSONTyped(json, false);
49
+ }
50
+ function IngestDocumentResponseToJSONTyped(value, ignoreDiscriminator = false) {
51
+ if (value == null) {
52
+ return value;
53
+ }
54
+ return {
55
+ 'workflow_id': value['workflowId'],
56
+ 'document_id': value['documentId'],
57
+ 'document_version_id': value['documentVersionId'],
58
+ };
59
+ }
60
+ exports.IngestDocumentResponsePropertyValidationAttributesMap = {};
@@ -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
+ };
@@ -0,0 +1,78 @@
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
+ * Pipeline execution state tracking.
15
+ * @export
16
+ * @interface PipelineState
17
+ */
18
+ export interface PipelineState {
19
+ /**
20
+ * Current status of the ingestion pipeline
21
+ * @type {PipelineStatus}
22
+ * @memberof PipelineState
23
+ */
24
+ status: PipelineStatus;
25
+ /**
26
+ * Timestamp of the last pipeline execution attempt
27
+ * @type {Date}
28
+ * @memberof PipelineState
29
+ */
30
+ lastRunTimestamp: Date;
31
+ /**
32
+ * Name of the last activity that executed (e.g., 'docling_conversion')
33
+ * @type {string}
34
+ * @memberof PipelineState
35
+ */
36
+ lastActivity?: string;
37
+ /**
38
+ * Error message if pipeline failed
39
+ * @type {string}
40
+ * @memberof PipelineState
41
+ */
42
+ error?: string;
43
+ /**
44
+ * Temporal workflow ID for tracking the ingestion run
45
+ * @type {string}
46
+ * @memberof PipelineState
47
+ */
48
+ temporalWorkflowId?: string;
49
+ /**
50
+ * Number of chunks processed (for progress tracking)
51
+ * @type {number}
52
+ * @memberof PipelineState
53
+ */
54
+ chunksProcessed?: number;
55
+ }
56
+ /**
57
+ * Check if a given object implements the PipelineState interface.
58
+ */
59
+ export declare function instanceOfPipelineState(value: object): value is PipelineState;
60
+ export declare function PipelineStateFromJSON(json: any): PipelineState;
61
+ export declare function PipelineStateFromJSONTyped(json: any, ignoreDiscriminator: boolean): PipelineState;
62
+ export declare function PipelineStateToJSON(json: any): PipelineState;
63
+ export declare function PipelineStateToJSONTyped(value?: PipelineState | null, ignoreDiscriminator?: boolean): any;
64
+ export declare const PipelineStatePropertyValidationAttributesMap: {
65
+ [property: string]: {
66
+ maxLength?: number;
67
+ minLength?: number;
68
+ pattern?: string;
69
+ maximum?: number;
70
+ exclusiveMaximum?: boolean;
71
+ minimum?: number;
72
+ exclusiveMinimum?: boolean;
73
+ multipleOf?: number;
74
+ maxItems?: number;
75
+ minItems?: number;
76
+ uniqueItems?: boolean;
77
+ };
78
+ };
@@ -0,0 +1,65 @@
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.PipelineStatePropertyValidationAttributesMap = void 0;
17
+ exports.instanceOfPipelineState = instanceOfPipelineState;
18
+ exports.PipelineStateFromJSON = PipelineStateFromJSON;
19
+ exports.PipelineStateFromJSONTyped = PipelineStateFromJSONTyped;
20
+ exports.PipelineStateToJSON = PipelineStateToJSON;
21
+ exports.PipelineStateToJSONTyped = PipelineStateToJSONTyped;
22
+ const PipelineStatus_1 = require("./PipelineStatus");
23
+ /**
24
+ * Check if a given object implements the PipelineState interface.
25
+ */
26
+ function instanceOfPipelineState(value) {
27
+ if (!('status' in value) || value['status'] === undefined)
28
+ return false;
29
+ if (!('lastRunTimestamp' in value) || value['lastRunTimestamp'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ function PipelineStateFromJSON(json) {
34
+ return PipelineStateFromJSONTyped(json, false);
35
+ }
36
+ function PipelineStateFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'status': (0, PipelineStatus_1.PipelineStatusFromJSON)(json['status']),
42
+ 'lastRunTimestamp': (new Date(json['last_run_timestamp'])),
43
+ 'lastActivity': json['last_activity'] == null ? undefined : json['last_activity'],
44
+ 'error': json['error'] == null ? undefined : json['error'],
45
+ 'temporalWorkflowId': json['temporal_workflow_id'] == null ? undefined : json['temporal_workflow_id'],
46
+ 'chunksProcessed': json['chunks_processed'] == null ? undefined : json['chunks_processed'],
47
+ };
48
+ }
49
+ function PipelineStateToJSON(json) {
50
+ return PipelineStateToJSONTyped(json, false);
51
+ }
52
+ function PipelineStateToJSONTyped(value, ignoreDiscriminator = false) {
53
+ if (value == null) {
54
+ return value;
55
+ }
56
+ return {
57
+ 'status': (0, PipelineStatus_1.PipelineStatusToJSON)(value['status']),
58
+ 'last_run_timestamp': value['lastRunTimestamp'].toISOString(),
59
+ 'last_activity': value['lastActivity'],
60
+ 'error': value['error'],
61
+ 'temporal_workflow_id': value['temporalWorkflowId'],
62
+ 'chunks_processed': value['chunksProcessed'],
63
+ };
64
+ }
65
+ exports.PipelineStatePropertyValidationAttributesMap = {};
@@ -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,54 @@
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.PipelineStatus = void 0;
17
+ exports.instanceOfPipelineStatus = instanceOfPipelineStatus;
18
+ exports.PipelineStatusFromJSON = PipelineStatusFromJSON;
19
+ exports.PipelineStatusFromJSONTyped = PipelineStatusFromJSONTyped;
20
+ exports.PipelineStatusToJSON = PipelineStatusToJSON;
21
+ exports.PipelineStatusToJSONTyped = PipelineStatusToJSONTyped;
22
+ /**
23
+ * Status of the ingestion pipeline workflow.
24
+ * @export
25
+ */
26
+ exports.PipelineStatus = {
27
+ Pending: 'pending',
28
+ Processing: 'processing',
29
+ Completed: 'completed',
30
+ Failed: 'failed',
31
+ Cancelled: 'cancelled'
32
+ };
33
+ function instanceOfPipelineStatus(value) {
34
+ for (const key in exports.PipelineStatus) {
35
+ if (Object.prototype.hasOwnProperty.call(exports.PipelineStatus, key)) {
36
+ if (exports.PipelineStatus[key] === value) {
37
+ return true;
38
+ }
39
+ }
40
+ }
41
+ return false;
42
+ }
43
+ function PipelineStatusFromJSON(json) {
44
+ return PipelineStatusFromJSONTyped(json, false);
45
+ }
46
+ function PipelineStatusFromJSONTyped(json, ignoreDiscriminator) {
47
+ return json;
48
+ }
49
+ function PipelineStatusToJSON(value) {
50
+ return value;
51
+ }
52
+ function PipelineStatusToJSONTyped(value, ignoreDiscriminator) {
53
+ return value;
54
+ }
@@ -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}
@@ -34,7 +34,7 @@ function UpdateDocumentRequestFromJSONTyped(json, ignoreDiscriminator) {
34
34
  }
35
35
  return {
36
36
  'name': json['name'] == null ? undefined : json['name'],
37
- 'parentId': json['parent_id'] == null ? undefined : json['parent_id'],
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
- 'parent_id': value['parentId'],
50
+ 'parent_folder_id': value['parentFolderId'],
51
51
  'active_version_id': value['activeVersionId'],
52
52
  };
53
53
  }
@@ -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.
@@ -34,7 +34,7 @@ function UpdateFolderRequestFromJSONTyped(json, ignoreDiscriminator) {
34
34
  }
35
35
  return {
36
36
  'name': json['name'] == null ? undefined : json['name'],
37
- 'parentId': json['parent_id'] == null ? undefined : json['parent_id'],
37
+ 'parentFolderId': json['parent_folder_id'] == null ? undefined : json['parent_folder_id'],
38
38
  };
39
39
  }
40
40
  function UpdateFolderRequestToJSON(json) {
@@ -46,7 +46,7 @@ function UpdateFolderRequestToJSONTyped(value, ignoreDiscriminator = false) {
46
46
  }
47
47
  return {
48
48
  'name': value['name'],
49
- 'parent_id': value['parentId'],
49
+ 'parent_folder_id': value['parentFolderId'],
50
50
  };
51
51
  }
52
52
  exports.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,51 @@
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.WorkflowAction = void 0;
17
+ exports.instanceOfWorkflowAction = instanceOfWorkflowAction;
18
+ exports.WorkflowActionFromJSON = WorkflowActionFromJSON;
19
+ exports.WorkflowActionFromJSONTyped = WorkflowActionFromJSONTyped;
20
+ exports.WorkflowActionToJSON = WorkflowActionToJSON;
21
+ exports.WorkflowActionToJSONTyped = WorkflowActionToJSONTyped;
22
+ /**
23
+ * Supported workflow actions.
24
+ * @export
25
+ */
26
+ exports.WorkflowAction = {
27
+ Rerun: 'rerun',
28
+ Cancel: 'cancel'
29
+ };
30
+ function instanceOfWorkflowAction(value) {
31
+ for (const key in exports.WorkflowAction) {
32
+ if (Object.prototype.hasOwnProperty.call(exports.WorkflowAction, key)) {
33
+ if (exports.WorkflowAction[key] === value) {
34
+ return true;
35
+ }
36
+ }
37
+ }
38
+ return false;
39
+ }
40
+ function WorkflowActionFromJSON(json) {
41
+ return WorkflowActionFromJSONTyped(json, false);
42
+ }
43
+ function WorkflowActionFromJSONTyped(json, ignoreDiscriminator) {
44
+ return json;
45
+ }
46
+ function WorkflowActionToJSON(value) {
47
+ return value;
48
+ }
49
+ function WorkflowActionToJSONTyped(value, ignoreDiscriminator) {
50
+ return value;
51
+ }