@knowledge-stack/ksapi 1.82.0 → 1.84.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 (172) hide show
  1. package/.openapi-generator/FILES +26 -0
  2. package/README.md +26 -2
  3. package/dist/apis/PathPartsApi.d.ts +110 -1
  4. package/dist/apis/PathPartsApi.js +111 -0
  5. package/dist/apis/WorkflowMemoryApi.d.ts +249 -0
  6. package/dist/apis/WorkflowMemoryApi.js +299 -0
  7. package/dist/apis/WorkflowRunsApi.d.ts +233 -1
  8. package/dist/apis/WorkflowRunsApi.js +236 -0
  9. package/dist/apis/index.d.ts +1 -0
  10. package/dist/apis/index.js +1 -0
  11. package/dist/esm/apis/PathPartsApi.d.ts +110 -1
  12. package/dist/esm/apis/PathPartsApi.js +112 -1
  13. package/dist/esm/apis/WorkflowMemoryApi.d.ts +249 -0
  14. package/dist/esm/apis/WorkflowMemoryApi.js +262 -0
  15. package/dist/esm/apis/WorkflowRunsApi.d.ts +233 -1
  16. package/dist/esm/apis/WorkflowRunsApi.js +237 -1
  17. package/dist/esm/apis/index.d.ts +1 -0
  18. package/dist/esm/apis/index.js +1 -0
  19. package/dist/esm/models/AppendEventRequest.d.ts +62 -0
  20. package/dist/esm/models/AppendEventRequest.js +51 -0
  21. package/dist/esm/models/AppendMemoryChunkRequest.d.ts +54 -0
  22. package/dist/esm/models/AppendMemoryChunkRequest.js +52 -0
  23. package/dist/esm/models/ChunkBulkResponse.d.ts +4 -4
  24. package/dist/esm/models/ChunkContentItem.d.ts +2 -2
  25. package/dist/esm/models/ChunkResponse.d.ts +4 -4
  26. package/dist/esm/models/CreateThreadMessageRequest.d.ts +2 -2
  27. package/dist/esm/models/CreateWorkflowDefinitionRequest.d.ts +7 -1
  28. package/dist/esm/models/CreateWorkflowDefinitionRequest.js +2 -0
  29. package/dist/esm/models/DocumentVersionMetadata.d.ts +4 -4
  30. package/dist/esm/models/DocumentVersionMetadataUpdate.d.ts +2 -2
  31. package/dist/esm/models/EditMemoryChunkRequest.d.ts +47 -0
  32. package/dist/esm/models/EditMemoryChunkRequest.js +49 -0
  33. package/dist/esm/models/EventResponse.d.ts +83 -0
  34. package/dist/esm/models/EventResponse.js +64 -0
  35. package/dist/esm/models/ListMemoryChunksResponse.d.ts +48 -0
  36. package/dist/esm/models/ListMemoryChunksResponse.js +45 -0
  37. package/dist/esm/models/MemoryChunkResponse.d.ts +60 -0
  38. package/dist/esm/models/MemoryChunkResponse.js +53 -0
  39. package/dist/esm/models/MemoryKind.d.ts +29 -0
  40. package/dist/esm/models/MemoryKind.js +47 -0
  41. package/dist/esm/models/PaginatedResponseEventResponse.d.ts +66 -0
  42. package/dist/esm/models/PaginatedResponseEventResponse.js +70 -0
  43. package/dist/esm/models/PathPartApprovalDecision.d.ts +30 -0
  44. package/dist/esm/models/PathPartApprovalDecision.js +48 -0
  45. package/dist/esm/models/PathPartApprovalResponse.d.ts +111 -0
  46. package/dist/esm/models/PathPartApprovalResponse.js +85 -0
  47. package/dist/esm/models/RejectFileRequest.d.ts +47 -0
  48. package/dist/esm/models/RejectFileRequest.js +49 -0
  49. package/dist/esm/models/RunLockResponse.d.ts +59 -0
  50. package/dist/esm/models/RunLockResponse.js +52 -0
  51. package/dist/esm/models/ScoredChunkResponse.d.ts +4 -4
  52. package/dist/esm/models/SectionSystemMetadata.d.ts +1 -1
  53. package/dist/esm/models/TenantSettingsUpdate.d.ts +2 -2
  54. package/dist/esm/models/ThreadMessageDetailsInput.d.ts +2 -2
  55. package/dist/esm/models/ThreadMessageDetailsOutput.d.ts +2 -2
  56. package/dist/esm/models/ThreadMessageResponse.d.ts +2 -2
  57. package/dist/esm/models/UpdateChunkMetadataRequest.d.ts +2 -2
  58. package/dist/esm/models/UpdateTenantRequest.d.ts +4 -4
  59. package/dist/esm/models/UpdateWorkflowDefinitionRequest.d.ts +7 -1
  60. package/dist/esm/models/UpdateWorkflowDefinitionRequest.js +2 -0
  61. package/dist/esm/models/WorkflowDefinitionResponse.d.ts +7 -1
  62. package/dist/esm/models/WorkflowDefinitionResponse.js +4 -0
  63. package/dist/esm/models/WorkflowRunSnapshot.d.ts +1 -1
  64. package/dist/esm/models/WorkflowRunStatus.d.ts +20 -2
  65. package/dist/esm/models/WorkflowRunStatus.js +20 -2
  66. package/dist/esm/models/index.d.ts +12 -0
  67. package/dist/esm/models/index.js +12 -0
  68. package/dist/models/AppendEventRequest.d.ts +62 -0
  69. package/dist/models/AppendEventRequest.js +59 -0
  70. package/dist/models/AppendMemoryChunkRequest.d.ts +54 -0
  71. package/dist/models/AppendMemoryChunkRequest.js +60 -0
  72. package/dist/models/ChunkBulkResponse.d.ts +4 -4
  73. package/dist/models/ChunkContentItem.d.ts +2 -2
  74. package/dist/models/ChunkResponse.d.ts +4 -4
  75. package/dist/models/CreateThreadMessageRequest.d.ts +2 -2
  76. package/dist/models/CreateWorkflowDefinitionRequest.d.ts +7 -1
  77. package/dist/models/CreateWorkflowDefinitionRequest.js +2 -0
  78. package/dist/models/DocumentVersionMetadata.d.ts +4 -4
  79. package/dist/models/DocumentVersionMetadataUpdate.d.ts +2 -2
  80. package/dist/models/EditMemoryChunkRequest.d.ts +47 -0
  81. package/dist/models/EditMemoryChunkRequest.js +57 -0
  82. package/dist/models/EventResponse.d.ts +83 -0
  83. package/dist/models/EventResponse.js +72 -0
  84. package/dist/models/ListMemoryChunksResponse.d.ts +48 -0
  85. package/dist/models/ListMemoryChunksResponse.js +53 -0
  86. package/dist/models/MemoryChunkResponse.d.ts +60 -0
  87. package/dist/models/MemoryChunkResponse.js +61 -0
  88. package/dist/models/MemoryKind.d.ts +29 -0
  89. package/dist/models/MemoryKind.js +55 -0
  90. package/dist/models/PaginatedResponseEventResponse.d.ts +66 -0
  91. package/dist/models/PaginatedResponseEventResponse.js +78 -0
  92. package/dist/models/PathPartApprovalDecision.d.ts +30 -0
  93. package/dist/models/PathPartApprovalDecision.js +56 -0
  94. package/dist/models/PathPartApprovalResponse.d.ts +111 -0
  95. package/dist/models/PathPartApprovalResponse.js +93 -0
  96. package/dist/models/RejectFileRequest.d.ts +47 -0
  97. package/dist/models/RejectFileRequest.js +57 -0
  98. package/dist/models/RunLockResponse.d.ts +59 -0
  99. package/dist/models/RunLockResponse.js +60 -0
  100. package/dist/models/ScoredChunkResponse.d.ts +4 -4
  101. package/dist/models/SectionSystemMetadata.d.ts +1 -1
  102. package/dist/models/TenantSettingsUpdate.d.ts +2 -2
  103. package/dist/models/ThreadMessageDetailsInput.d.ts +2 -2
  104. package/dist/models/ThreadMessageDetailsOutput.d.ts +2 -2
  105. package/dist/models/ThreadMessageResponse.d.ts +2 -2
  106. package/dist/models/UpdateChunkMetadataRequest.d.ts +2 -2
  107. package/dist/models/UpdateTenantRequest.d.ts +4 -4
  108. package/dist/models/UpdateWorkflowDefinitionRequest.d.ts +7 -1
  109. package/dist/models/UpdateWorkflowDefinitionRequest.js +2 -0
  110. package/dist/models/WorkflowDefinitionResponse.d.ts +7 -1
  111. package/dist/models/WorkflowDefinitionResponse.js +4 -0
  112. package/dist/models/WorkflowRunSnapshot.d.ts +1 -1
  113. package/dist/models/WorkflowRunStatus.d.ts +20 -2
  114. package/dist/models/WorkflowRunStatus.js +20 -2
  115. package/dist/models/index.d.ts +12 -0
  116. package/dist/models/index.js +12 -0
  117. package/docs/AppendEventRequest.md +37 -0
  118. package/docs/AppendMemoryChunkRequest.md +36 -0
  119. package/docs/CreateWorkflowDefinitionRequest.md +2 -0
  120. package/docs/EditMemoryChunkRequest.md +34 -0
  121. package/docs/EventResponse.md +45 -0
  122. package/docs/ListMemoryChunksResponse.md +34 -0
  123. package/docs/MemoryChunkResponse.md +39 -0
  124. package/docs/MemoryKind.md +33 -0
  125. package/docs/PaginatedResponseEventResponse.md +40 -0
  126. package/docs/PathPartApprovalDecision.md +33 -0
  127. package/docs/PathPartApprovalResponse.md +55 -0
  128. package/docs/PathPartsApi.md +171 -0
  129. package/docs/RejectFileRequest.md +35 -0
  130. package/docs/RunLockResponse.md +39 -0
  131. package/docs/UpdateWorkflowDefinitionRequest.md +2 -0
  132. package/docs/WorkflowDefinitionResponse.md +2 -0
  133. package/docs/WorkflowMemoryApi.md +390 -0
  134. package/docs/WorkflowRunStatus.md +1 -1
  135. package/docs/WorkflowRunsApi.md +387 -0
  136. package/package.json +1 -1
  137. package/src/apis/PathPartsApi.ts +234 -0
  138. package/src/apis/WorkflowMemoryApi.ts +522 -0
  139. package/src/apis/WorkflowRunsApi.ts +479 -0
  140. package/src/apis/index.ts +1 -0
  141. package/src/models/AppendEventRequest.ts +102 -0
  142. package/src/models/AppendMemoryChunkRequest.ts +105 -0
  143. package/src/models/ChunkBulkResponse.ts +4 -4
  144. package/src/models/ChunkContentItem.ts +2 -2
  145. package/src/models/ChunkResponse.ts +4 -4
  146. package/src/models/CreateThreadMessageRequest.ts +2 -2
  147. package/src/models/CreateWorkflowDefinitionRequest.ts +9 -1
  148. package/src/models/DocumentVersionMetadata.ts +4 -4
  149. package/src/models/DocumentVersionMetadataUpdate.ts +2 -2
  150. package/src/models/EditMemoryChunkRequest.ts +87 -0
  151. package/src/models/EventResponse.ts +132 -0
  152. package/src/models/ListMemoryChunksResponse.ts +91 -0
  153. package/src/models/MemoryChunkResponse.ts +111 -0
  154. package/src/models/MemoryKind.ts +57 -0
  155. package/src/models/PaginatedResponseEventResponse.ts +130 -0
  156. package/src/models/PathPartApprovalDecision.ts +58 -0
  157. package/src/models/PathPartApprovalResponse.ts +186 -0
  158. package/src/models/RejectFileRequest.ts +87 -0
  159. package/src/models/RunLockResponse.ts +101 -0
  160. package/src/models/ScoredChunkResponse.ts +4 -4
  161. package/src/models/SectionSystemMetadata.ts +1 -1
  162. package/src/models/TenantSettingsUpdate.ts +2 -2
  163. package/src/models/ThreadMessageDetailsInput.ts +2 -2
  164. package/src/models/ThreadMessageDetailsOutput.ts +2 -2
  165. package/src/models/ThreadMessageResponse.ts +2 -2
  166. package/src/models/UpdateChunkMetadataRequest.ts +2 -2
  167. package/src/models/UpdateTenantRequest.ts +4 -4
  168. package/src/models/UpdateWorkflowDefinitionRequest.ts +9 -1
  169. package/src/models/WorkflowDefinitionResponse.ts +10 -1
  170. package/src/models/WorkflowRunSnapshot.ts +1 -1
  171. package/src/models/WorkflowRunStatus.ts +20 -2
  172. package/src/models/index.ts +12 -0
@@ -0,0 +1,30 @@
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
+ * Per-file review status within a run (SeaHonor pilot).
14
+ *
15
+ * Now retained as the audit-history record (one row per (run, file));
16
+ * the current state of truth is ``path_part.approval_state``. The
17
+ * service dual-writes both.
18
+ * @export
19
+ */
20
+ export declare const PathPartApprovalDecision: {
21
+ readonly Pending: "pending";
22
+ readonly Approved: "approved";
23
+ readonly Rejected: "rejected";
24
+ };
25
+ export type PathPartApprovalDecision = typeof PathPartApprovalDecision[keyof typeof PathPartApprovalDecision];
26
+ export declare function instanceOfPathPartApprovalDecision(value: any): boolean;
27
+ export declare function PathPartApprovalDecisionFromJSON(json: any): PathPartApprovalDecision;
28
+ export declare function PathPartApprovalDecisionFromJSONTyped(json: any, ignoreDiscriminator: boolean): PathPartApprovalDecision;
29
+ export declare function PathPartApprovalDecisionToJSON(value?: PathPartApprovalDecision | null): any;
30
+ export declare function PathPartApprovalDecisionToJSONTyped(value: any, ignoreDiscriminator: boolean): PathPartApprovalDecision;
@@ -0,0 +1,48 @@
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
+ * Per-file review status within a run (SeaHonor pilot).
16
+ *
17
+ * Now retained as the audit-history record (one row per (run, file));
18
+ * the current state of truth is ``path_part.approval_state``. The
19
+ * service dual-writes both.
20
+ * @export
21
+ */
22
+ export const PathPartApprovalDecision = {
23
+ Pending: 'pending',
24
+ Approved: 'approved',
25
+ Rejected: 'rejected'
26
+ };
27
+ export function instanceOfPathPartApprovalDecision(value) {
28
+ for (const key in PathPartApprovalDecision) {
29
+ if (Object.prototype.hasOwnProperty.call(PathPartApprovalDecision, key)) {
30
+ if (PathPartApprovalDecision[key] === value) {
31
+ return true;
32
+ }
33
+ }
34
+ }
35
+ return false;
36
+ }
37
+ export function PathPartApprovalDecisionFromJSON(json) {
38
+ return PathPartApprovalDecisionFromJSONTyped(json, false);
39
+ }
40
+ export function PathPartApprovalDecisionFromJSONTyped(json, ignoreDiscriminator) {
41
+ return json;
42
+ }
43
+ export function PathPartApprovalDecisionToJSON(value) {
44
+ return value;
45
+ }
46
+ export function PathPartApprovalDecisionToJSONTyped(value, ignoreDiscriminator) {
47
+ return value;
48
+ }
@@ -0,0 +1,111 @@
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 { PathPartApprovalDecision } from './PathPartApprovalDecision';
13
+ /**
14
+ * Approval audit-history row over any path_part (file or folder).
15
+ *
16
+ * ``run_id`` is optional — None when the path_part was approved directly
17
+ * without a workflow-run context.
18
+ * @export
19
+ * @interface PathPartApprovalResponse
20
+ */
21
+ export interface PathPartApprovalResponse {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof PathPartApprovalResponse
26
+ */
27
+ id: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof PathPartApprovalResponse
32
+ */
33
+ runId: string | null;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof PathPartApprovalResponse
38
+ */
39
+ pathPartId: string;
40
+ /**
41
+ *
42
+ * @type {PathPartApprovalDecision}
43
+ * @memberof PathPartApprovalResponse
44
+ */
45
+ status: PathPartApprovalDecision;
46
+ /**
47
+ *
48
+ * @type {string}
49
+ * @memberof PathPartApprovalResponse
50
+ */
51
+ reviewerId: string | null;
52
+ /**
53
+ *
54
+ * @type {Date}
55
+ * @memberof PathPartApprovalResponse
56
+ */
57
+ reviewedAt: Date | null;
58
+ /**
59
+ *
60
+ * @type {string}
61
+ * @memberof PathPartApprovalResponse
62
+ */
63
+ rejectionReason: string | null;
64
+ /**
65
+ *
66
+ * @type {string}
67
+ * @memberof PathPartApprovalResponse
68
+ */
69
+ unapprovedBy: string | null;
70
+ /**
71
+ *
72
+ * @type {Date}
73
+ * @memberof PathPartApprovalResponse
74
+ */
75
+ unapprovedAt: Date | null;
76
+ /**
77
+ *
78
+ * @type {Date}
79
+ * @memberof PathPartApprovalResponse
80
+ */
81
+ createdAt: Date;
82
+ /**
83
+ *
84
+ * @type {Date}
85
+ * @memberof PathPartApprovalResponse
86
+ */
87
+ updatedAt: Date;
88
+ }
89
+ export declare const PathPartApprovalResponsePropertyValidationAttributesMap: {
90
+ [property: string]: {
91
+ maxLength?: number;
92
+ minLength?: number;
93
+ pattern?: string;
94
+ maximum?: number;
95
+ exclusiveMaximum?: boolean;
96
+ minimum?: number;
97
+ exclusiveMinimum?: boolean;
98
+ multipleOf?: number;
99
+ maxItems?: number;
100
+ minItems?: number;
101
+ uniqueItems?: boolean;
102
+ };
103
+ };
104
+ /**
105
+ * Check if a given object implements the PathPartApprovalResponse interface.
106
+ */
107
+ export declare function instanceOfPathPartApprovalResponse(value: object): value is PathPartApprovalResponse;
108
+ export declare function PathPartApprovalResponseFromJSON(json: any): PathPartApprovalResponse;
109
+ export declare function PathPartApprovalResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PathPartApprovalResponse;
110
+ export declare function PathPartApprovalResponseToJSON(json: any): PathPartApprovalResponse;
111
+ export declare function PathPartApprovalResponseToJSONTyped(value?: PathPartApprovalResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,85 @@
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 { PathPartApprovalDecisionFromJSON, PathPartApprovalDecisionToJSON, } from './PathPartApprovalDecision';
15
+ export const PathPartApprovalResponsePropertyValidationAttributesMap = {};
16
+ /**
17
+ * Check if a given object implements the PathPartApprovalResponse interface.
18
+ */
19
+ export function instanceOfPathPartApprovalResponse(value) {
20
+ if (!('id' in value) || value['id'] === undefined)
21
+ return false;
22
+ if (!('runId' in value) || value['runId'] === undefined)
23
+ return false;
24
+ if (!('pathPartId' in value) || value['pathPartId'] === undefined)
25
+ return false;
26
+ if (!('status' in value) || value['status'] === undefined)
27
+ return false;
28
+ if (!('reviewerId' in value) || value['reviewerId'] === undefined)
29
+ return false;
30
+ if (!('reviewedAt' in value) || value['reviewedAt'] === undefined)
31
+ return false;
32
+ if (!('rejectionReason' in value) || value['rejectionReason'] === undefined)
33
+ return false;
34
+ if (!('unapprovedBy' in value) || value['unapprovedBy'] === undefined)
35
+ return false;
36
+ if (!('unapprovedAt' in value) || value['unapprovedAt'] === undefined)
37
+ return false;
38
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
39
+ return false;
40
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined)
41
+ return false;
42
+ return true;
43
+ }
44
+ export function PathPartApprovalResponseFromJSON(json) {
45
+ return PathPartApprovalResponseFromJSONTyped(json, false);
46
+ }
47
+ export function PathPartApprovalResponseFromJSONTyped(json, ignoreDiscriminator) {
48
+ if (json == null) {
49
+ return json;
50
+ }
51
+ return {
52
+ 'id': json['id'],
53
+ 'runId': json['run_id'],
54
+ 'pathPartId': json['path_part_id'],
55
+ 'status': PathPartApprovalDecisionFromJSON(json['status']),
56
+ 'reviewerId': json['reviewer_id'],
57
+ 'reviewedAt': (json['reviewed_at'] == null ? null : new Date(json['reviewed_at'])),
58
+ 'rejectionReason': json['rejection_reason'],
59
+ 'unapprovedBy': json['unapproved_by'],
60
+ 'unapprovedAt': (json['unapproved_at'] == null ? null : new Date(json['unapproved_at'])),
61
+ 'createdAt': (new Date(json['created_at'])),
62
+ 'updatedAt': (new Date(json['updated_at'])),
63
+ };
64
+ }
65
+ export function PathPartApprovalResponseToJSON(json) {
66
+ return PathPartApprovalResponseToJSONTyped(json, false);
67
+ }
68
+ export function PathPartApprovalResponseToJSONTyped(value, ignoreDiscriminator = false) {
69
+ if (value == null) {
70
+ return value;
71
+ }
72
+ return {
73
+ 'id': value['id'],
74
+ 'run_id': value['runId'],
75
+ 'path_part_id': value['pathPartId'],
76
+ 'status': PathPartApprovalDecisionToJSON(value['status']),
77
+ 'reviewer_id': value['reviewerId'],
78
+ 'reviewed_at': value['reviewedAt'] == null ? value['reviewedAt'] : value['reviewedAt'].toISOString(),
79
+ 'rejection_reason': value['rejectionReason'],
80
+ 'unapproved_by': value['unapprovedBy'],
81
+ 'unapproved_at': value['unapprovedAt'] == null ? value['unapprovedAt'] : value['unapprovedAt'].toISOString(),
82
+ 'created_at': value['createdAt'].toISOString(),
83
+ 'updated_at': value['updatedAt'].toISOString(),
84
+ };
85
+ }
@@ -0,0 +1,47 @@
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
+ * Body for ``POST /workflow-runs/{run}/files/{file}/reject``.
14
+ * @export
15
+ * @interface RejectFileRequest
16
+ */
17
+ export interface RejectFileRequest {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof RejectFileRequest
22
+ */
23
+ reason: string;
24
+ }
25
+ export declare const RejectFileRequestPropertyValidationAttributesMap: {
26
+ [property: string]: {
27
+ maxLength?: number;
28
+ minLength?: number;
29
+ pattern?: string;
30
+ maximum?: number;
31
+ exclusiveMaximum?: boolean;
32
+ minimum?: number;
33
+ exclusiveMinimum?: boolean;
34
+ multipleOf?: number;
35
+ maxItems?: number;
36
+ minItems?: number;
37
+ uniqueItems?: boolean;
38
+ };
39
+ };
40
+ /**
41
+ * Check if a given object implements the RejectFileRequest interface.
42
+ */
43
+ export declare function instanceOfRejectFileRequest(value: object): value is RejectFileRequest;
44
+ export declare function RejectFileRequestFromJSON(json: any): RejectFileRequest;
45
+ export declare function RejectFileRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): RejectFileRequest;
46
+ export declare function RejectFileRequestToJSON(json: any): RejectFileRequest;
47
+ export declare function RejectFileRequestToJSONTyped(value?: RejectFileRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,49 @@
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
+ export const RejectFileRequestPropertyValidationAttributesMap = {
15
+ reason: {
16
+ maxLength: 2048,
17
+ minLength: 1,
18
+ },
19
+ };
20
+ /**
21
+ * Check if a given object implements the RejectFileRequest interface.
22
+ */
23
+ export function instanceOfRejectFileRequest(value) {
24
+ if (!('reason' in value) || value['reason'] === undefined)
25
+ return false;
26
+ return true;
27
+ }
28
+ export function RejectFileRequestFromJSON(json) {
29
+ return RejectFileRequestFromJSONTyped(json, false);
30
+ }
31
+ export function RejectFileRequestFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'reason': json['reason'],
37
+ };
38
+ }
39
+ export function RejectFileRequestToJSON(json) {
40
+ return RejectFileRequestToJSONTyped(json, false);
41
+ }
42
+ export function RejectFileRequestToJSONTyped(value, ignoreDiscriminator = false) {
43
+ if (value == null) {
44
+ return value;
45
+ }
46
+ return {
47
+ 'reason': value['reason'],
48
+ };
49
+ }
@@ -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
+ * Reviewer-lock state on a workflow run.
14
+ * @export
15
+ * @interface RunLockResponse
16
+ */
17
+ export interface RunLockResponse {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof RunLockResponse
22
+ */
23
+ runId: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof RunLockResponse
28
+ */
29
+ lockUserId: string | null;
30
+ /**
31
+ *
32
+ * @type {Date}
33
+ * @memberof RunLockResponse
34
+ */
35
+ lockAcquiredAt: Date | null;
36
+ }
37
+ export declare const RunLockResponsePropertyValidationAttributesMap: {
38
+ [property: string]: {
39
+ maxLength?: number;
40
+ minLength?: number;
41
+ pattern?: string;
42
+ maximum?: number;
43
+ exclusiveMaximum?: boolean;
44
+ minimum?: number;
45
+ exclusiveMinimum?: boolean;
46
+ multipleOf?: number;
47
+ maxItems?: number;
48
+ minItems?: number;
49
+ uniqueItems?: boolean;
50
+ };
51
+ };
52
+ /**
53
+ * Check if a given object implements the RunLockResponse interface.
54
+ */
55
+ export declare function instanceOfRunLockResponse(value: object): value is RunLockResponse;
56
+ export declare function RunLockResponseFromJSON(json: any): RunLockResponse;
57
+ export declare function RunLockResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): RunLockResponse;
58
+ export declare function RunLockResponseToJSON(json: any): RunLockResponse;
59
+ export declare function RunLockResponseToJSONTyped(value?: RunLockResponse | null, ignoreDiscriminator?: boolean): any;
@@ -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
+ export const RunLockResponsePropertyValidationAttributesMap = {};
15
+ /**
16
+ * Check if a given object implements the RunLockResponse interface.
17
+ */
18
+ export function instanceOfRunLockResponse(value) {
19
+ if (!('runId' in value) || value['runId'] === undefined)
20
+ return false;
21
+ if (!('lockUserId' in value) || value['lockUserId'] === undefined)
22
+ return false;
23
+ if (!('lockAcquiredAt' in value) || value['lockAcquiredAt'] === undefined)
24
+ return false;
25
+ return true;
26
+ }
27
+ export function RunLockResponseFromJSON(json) {
28
+ return RunLockResponseFromJSONTyped(json, false);
29
+ }
30
+ export function RunLockResponseFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'runId': json['run_id'],
36
+ 'lockUserId': json['lock_user_id'],
37
+ 'lockAcquiredAt': (json['lock_acquired_at'] == null ? null : new Date(json['lock_acquired_at'])),
38
+ };
39
+ }
40
+ export function RunLockResponseToJSON(json) {
41
+ return RunLockResponseToJSONTyped(json, false);
42
+ }
43
+ export function RunLockResponseToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'run_id': value['runId'],
49
+ 'lock_user_id': value['lockUserId'],
50
+ 'lock_acquired_at': value['lockAcquiredAt'] == null ? value['lockAcquiredAt'] : value['lockAcquiredAt'].toISOString(),
51
+ };
52
+ }
@@ -116,17 +116,17 @@ export interface ScoredChunkResponse {
116
116
  */
117
117
  assetS3Urls?: Array<string>;
118
118
  /**
119
- *
119
+ * Ancestor document info (populated when with_document=true)
120
120
  * @type {ChunkDocumentResponse}
121
121
  * @memberof ScoredChunkResponse
122
122
  */
123
- document?: ChunkDocumentResponse;
123
+ document?: ChunkDocumentResponse | null;
124
124
  /**
125
- *
125
+ * Ancestor document version info (populated when with_document=true)
126
126
  * @type {ChunkDocumentVersionResponse}
127
127
  * @memberof ScoredChunkResponse
128
128
  */
129
- documentVersion?: ChunkDocumentVersionResponse;
129
+ documentVersion?: ChunkDocumentVersionResponse | null;
130
130
  /**
131
131
  * Search ranking score returned by Qdrant
132
132
  * @type {number}
@@ -21,7 +21,7 @@ export interface SectionSystemMetadata {
21
21
  * @type {InformationStatistics}
22
22
  * @memberof SectionSystemMetadata
23
23
  */
24
- informationStatistics?: InformationStatistics;
24
+ informationStatistics?: InformationStatistics | null;
25
25
  }
26
26
  export declare const SectionSystemMetadataPropertyValidationAttributesMap: {
27
27
  [property: string]: {
@@ -62,11 +62,11 @@ export interface TenantSettingsUpdate {
62
62
  [key: string]: string;
63
63
  } | null;
64
64
  /**
65
- *
65
+ * Tenant-wide invite-link configuration
66
66
  * @type {InviteLinkSettingsRequest}
67
67
  * @memberof TenantSettingsUpdate
68
68
  */
69
- inviteLink?: InviteLinkSettingsRequest;
69
+ inviteLink?: InviteLinkSettingsRequest | null;
70
70
  }
71
71
  export declare const TenantSettingsUpdatePropertyValidationAttributesMap: {
72
72
  [property: string]: {
@@ -24,11 +24,11 @@ export interface ThreadMessageDetailsInput {
24
24
  */
25
25
  steps?: Array<StepInput>;
26
26
  /**
27
- *
27
+ * Agent history checkpoint. Present only on role=SYSTEM messages written by the agent's archival path.
28
28
  * @type {CheckpointDetails}
29
29
  * @memberof ThreadMessageDetailsInput
30
30
  */
31
- checkpoint?: CheckpointDetails;
31
+ checkpoint?: CheckpointDetails | null;
32
32
  }
33
33
  export declare const ThreadMessageDetailsInputPropertyValidationAttributesMap: {
34
34
  [property: string]: {
@@ -24,11 +24,11 @@ export interface ThreadMessageDetailsOutput {
24
24
  */
25
25
  steps?: Array<StepOutput>;
26
26
  /**
27
- *
27
+ * Agent history checkpoint. Present only on role=SYSTEM messages written by the agent's archival path.
28
28
  * @type {CheckpointDetails}
29
29
  * @memberof ThreadMessageDetailsOutput
30
30
  */
31
- checkpoint?: CheckpointDetails;
31
+ checkpoint?: CheckpointDetails | null;
32
32
  }
33
33
  export declare const ThreadMessageDetailsOutputPropertyValidationAttributesMap: {
34
34
  [property: string]: {
@@ -49,11 +49,11 @@ export interface ThreadMessageResponse {
49
49
  */
50
50
  content: EnrichedThreadMessageContent;
51
51
  /**
52
- *
52
+ * Message details (None when not requested via with_details)
53
53
  * @type {ThreadMessageDetailsOutput}
54
54
  * @memberof ThreadMessageResponse
55
55
  */
56
- details?: ThreadMessageDetailsOutput;
56
+ details?: ThreadMessageDetailsOutput | null;
57
57
  /**
58
58
  * Thread's PathPart ID
59
59
  * @type {string}
@@ -17,11 +17,11 @@ import type { ChunkMetadata } from './ChunkMetadata';
17
17
  */
18
18
  export interface UpdateChunkMetadataRequest {
19
19
  /**
20
- *
20
+ * Metadata to merge into existing chunk_metadata (optional)
21
21
  * @type {ChunkMetadata}
22
22
  * @memberof UpdateChunkMetadataRequest
23
23
  */
24
- chunkMetadata?: ChunkMetadata;
24
+ chunkMetadata?: ChunkMetadata | null;
25
25
  /**
26
26
  * Reparent to this PathPart ID (must be DOCUMENT_VERSION or SECTION in the same document version)
27
27
  * @type {string}
@@ -24,17 +24,17 @@ export interface UpdateTenantRequest {
24
24
  */
25
25
  name?: string | null;
26
26
  /**
27
- *
27
+ * Optional external IdP configuration to update
28
28
  * @type {IdpConfig}
29
29
  * @memberof UpdateTenantRequest
30
30
  */
31
- idpConfig?: IdpConfig;
31
+ idpConfig?: IdpConfig | null;
32
32
  /**
33
- *
33
+ * Optional tenant settings to update
34
34
  * @type {TenantSettingsUpdate}
35
35
  * @memberof UpdateTenantRequest
36
36
  */
37
- settings?: TenantSettingsUpdate;
37
+ settings?: TenantSettingsUpdate | null;
38
38
  }
39
39
  export declare const UpdateTenantRequestPropertyValidationAttributesMap: {
40
40
  [property: string]: {
@@ -45,7 +45,7 @@ export interface UpdateWorkflowDefinitionRequest {
45
45
  * @type {SelfHostedRunnerConfig}
46
46
  * @memberof UpdateWorkflowDefinitionRequest
47
47
  */
48
- runnerConfig?: SelfHostedRunnerConfig;
48
+ runnerConfig?: SelfHostedRunnerConfig | null;
49
49
  /**
50
50
  *
51
51
  * @type {number}
@@ -82,6 +82,12 @@ export interface UpdateWorkflowDefinitionRequest {
82
82
  * @memberof UpdateWorkflowDefinitionRequest
83
83
  */
84
84
  isActive?: boolean;
85
+ /**
86
+ *
87
+ * @type {boolean}
88
+ * @memberof UpdateWorkflowDefinitionRequest
89
+ */
90
+ approvalRequired?: boolean;
85
91
  }
86
92
  export declare const UpdateWorkflowDefinitionRequestPropertyValidationAttributesMap: {
87
93
  [property: string]: {
@@ -73,6 +73,7 @@ export function UpdateWorkflowDefinitionRequestFromJSONTyped(json, ignoreDiscrim
73
73
  'outputPathPartIds': json['output_path_part_ids'],
74
74
  'templatePathPartId': json['template_path_part_id'] == null ? undefined : json['template_path_part_id'],
75
75
  'isActive': json['is_active'] == null ? undefined : json['is_active'],
76
+ 'approvalRequired': json['approval_required'] == null ? undefined : json['approval_required'],
76
77
  };
77
78
  }
78
79
  export function UpdateWorkflowDefinitionRequestToJSON(json) {
@@ -93,5 +94,6 @@ export function UpdateWorkflowDefinitionRequestToJSONTyped(value, ignoreDiscrimi
93
94
  'output_path_part_ids': value['outputPathPartIds'],
94
95
  'template_path_part_id': value['templatePathPartId'],
95
96
  'is_active': value['isActive'],
97
+ 'approval_required': value['approvalRequired'],
96
98
  };
97
99
  }
@@ -46,7 +46,7 @@ export interface WorkflowDefinitionResponse {
46
46
  * @type {SelfHostedRunnerConfigResponse}
47
47
  * @memberof WorkflowDefinitionResponse
48
48
  */
49
- runnerConfig: SelfHostedRunnerConfigResponse;
49
+ runnerConfig: SelfHostedRunnerConfigResponse | null;
50
50
  /**
51
51
  *
52
52
  * @type {number}
@@ -83,6 +83,12 @@ export interface WorkflowDefinitionResponse {
83
83
  * @memberof WorkflowDefinitionResponse
84
84
  */
85
85
  isActive: boolean;
86
+ /**
87
+ *
88
+ * @type {boolean}
89
+ * @memberof WorkflowDefinitionResponse
90
+ */
91
+ approvalRequired: boolean;
86
92
  /**
87
93
  *
88
94
  * @type {Date}