@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.
- package/.openapi-generator/FILES +26 -0
- package/README.md +26 -2
- package/dist/apis/PathPartsApi.d.ts +110 -1
- package/dist/apis/PathPartsApi.js +111 -0
- package/dist/apis/WorkflowMemoryApi.d.ts +249 -0
- package/dist/apis/WorkflowMemoryApi.js +299 -0
- package/dist/apis/WorkflowRunsApi.d.ts +233 -1
- package/dist/apis/WorkflowRunsApi.js +236 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/PathPartsApi.d.ts +110 -1
- package/dist/esm/apis/PathPartsApi.js +112 -1
- package/dist/esm/apis/WorkflowMemoryApi.d.ts +249 -0
- package/dist/esm/apis/WorkflowMemoryApi.js +262 -0
- package/dist/esm/apis/WorkflowRunsApi.d.ts +233 -1
- package/dist/esm/apis/WorkflowRunsApi.js +237 -1
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/AppendEventRequest.d.ts +62 -0
- package/dist/esm/models/AppendEventRequest.js +51 -0
- package/dist/esm/models/AppendMemoryChunkRequest.d.ts +54 -0
- package/dist/esm/models/AppendMemoryChunkRequest.js +52 -0
- package/dist/esm/models/ChunkBulkResponse.d.ts +4 -4
- package/dist/esm/models/ChunkContentItem.d.ts +2 -2
- package/dist/esm/models/ChunkResponse.d.ts +4 -4
- package/dist/esm/models/CreateThreadMessageRequest.d.ts +2 -2
- package/dist/esm/models/CreateWorkflowDefinitionRequest.d.ts +7 -1
- package/dist/esm/models/CreateWorkflowDefinitionRequest.js +2 -0
- package/dist/esm/models/DocumentVersionMetadata.d.ts +4 -4
- package/dist/esm/models/DocumentVersionMetadataUpdate.d.ts +2 -2
- package/dist/esm/models/EditMemoryChunkRequest.d.ts +47 -0
- package/dist/esm/models/EditMemoryChunkRequest.js +49 -0
- package/dist/esm/models/EventResponse.d.ts +83 -0
- package/dist/esm/models/EventResponse.js +64 -0
- package/dist/esm/models/ListMemoryChunksResponse.d.ts +48 -0
- package/dist/esm/models/ListMemoryChunksResponse.js +45 -0
- package/dist/esm/models/MemoryChunkResponse.d.ts +60 -0
- package/dist/esm/models/MemoryChunkResponse.js +53 -0
- package/dist/esm/models/MemoryKind.d.ts +29 -0
- package/dist/esm/models/MemoryKind.js +47 -0
- package/dist/esm/models/PaginatedResponseEventResponse.d.ts +66 -0
- package/dist/esm/models/PaginatedResponseEventResponse.js +70 -0
- package/dist/esm/models/PathPartApprovalDecision.d.ts +30 -0
- package/dist/esm/models/PathPartApprovalDecision.js +48 -0
- package/dist/esm/models/PathPartApprovalResponse.d.ts +111 -0
- package/dist/esm/models/PathPartApprovalResponse.js +85 -0
- package/dist/esm/models/RejectFileRequest.d.ts +47 -0
- package/dist/esm/models/RejectFileRequest.js +49 -0
- package/dist/esm/models/RunLockResponse.d.ts +59 -0
- package/dist/esm/models/RunLockResponse.js +52 -0
- package/dist/esm/models/ScoredChunkResponse.d.ts +4 -4
- package/dist/esm/models/SectionSystemMetadata.d.ts +1 -1
- package/dist/esm/models/TenantSettingsUpdate.d.ts +2 -2
- package/dist/esm/models/ThreadMessageDetailsInput.d.ts +2 -2
- package/dist/esm/models/ThreadMessageDetailsOutput.d.ts +2 -2
- package/dist/esm/models/ThreadMessageResponse.d.ts +2 -2
- package/dist/esm/models/UpdateChunkMetadataRequest.d.ts +2 -2
- package/dist/esm/models/UpdateTenantRequest.d.ts +4 -4
- package/dist/esm/models/UpdateWorkflowDefinitionRequest.d.ts +7 -1
- package/dist/esm/models/UpdateWorkflowDefinitionRequest.js +2 -0
- package/dist/esm/models/WorkflowDefinitionResponse.d.ts +7 -1
- package/dist/esm/models/WorkflowDefinitionResponse.js +4 -0
- package/dist/esm/models/WorkflowRunSnapshot.d.ts +1 -1
- package/dist/esm/models/WorkflowRunStatus.d.ts +20 -2
- package/dist/esm/models/WorkflowRunStatus.js +20 -2
- package/dist/esm/models/index.d.ts +12 -0
- package/dist/esm/models/index.js +12 -0
- package/dist/models/AppendEventRequest.d.ts +62 -0
- package/dist/models/AppendEventRequest.js +59 -0
- package/dist/models/AppendMemoryChunkRequest.d.ts +54 -0
- package/dist/models/AppendMemoryChunkRequest.js +60 -0
- package/dist/models/ChunkBulkResponse.d.ts +4 -4
- package/dist/models/ChunkContentItem.d.ts +2 -2
- package/dist/models/ChunkResponse.d.ts +4 -4
- package/dist/models/CreateThreadMessageRequest.d.ts +2 -2
- package/dist/models/CreateWorkflowDefinitionRequest.d.ts +7 -1
- package/dist/models/CreateWorkflowDefinitionRequest.js +2 -0
- package/dist/models/DocumentVersionMetadata.d.ts +4 -4
- package/dist/models/DocumentVersionMetadataUpdate.d.ts +2 -2
- package/dist/models/EditMemoryChunkRequest.d.ts +47 -0
- package/dist/models/EditMemoryChunkRequest.js +57 -0
- package/dist/models/EventResponse.d.ts +83 -0
- package/dist/models/EventResponse.js +72 -0
- package/dist/models/ListMemoryChunksResponse.d.ts +48 -0
- package/dist/models/ListMemoryChunksResponse.js +53 -0
- package/dist/models/MemoryChunkResponse.d.ts +60 -0
- package/dist/models/MemoryChunkResponse.js +61 -0
- package/dist/models/MemoryKind.d.ts +29 -0
- package/dist/models/MemoryKind.js +55 -0
- package/dist/models/PaginatedResponseEventResponse.d.ts +66 -0
- package/dist/models/PaginatedResponseEventResponse.js +78 -0
- package/dist/models/PathPartApprovalDecision.d.ts +30 -0
- package/dist/models/PathPartApprovalDecision.js +56 -0
- package/dist/models/PathPartApprovalResponse.d.ts +111 -0
- package/dist/models/PathPartApprovalResponse.js +93 -0
- package/dist/models/RejectFileRequest.d.ts +47 -0
- package/dist/models/RejectFileRequest.js +57 -0
- package/dist/models/RunLockResponse.d.ts +59 -0
- package/dist/models/RunLockResponse.js +60 -0
- package/dist/models/ScoredChunkResponse.d.ts +4 -4
- package/dist/models/SectionSystemMetadata.d.ts +1 -1
- package/dist/models/TenantSettingsUpdate.d.ts +2 -2
- package/dist/models/ThreadMessageDetailsInput.d.ts +2 -2
- package/dist/models/ThreadMessageDetailsOutput.d.ts +2 -2
- package/dist/models/ThreadMessageResponse.d.ts +2 -2
- package/dist/models/UpdateChunkMetadataRequest.d.ts +2 -2
- package/dist/models/UpdateTenantRequest.d.ts +4 -4
- package/dist/models/UpdateWorkflowDefinitionRequest.d.ts +7 -1
- package/dist/models/UpdateWorkflowDefinitionRequest.js +2 -0
- package/dist/models/WorkflowDefinitionResponse.d.ts +7 -1
- package/dist/models/WorkflowDefinitionResponse.js +4 -0
- package/dist/models/WorkflowRunSnapshot.d.ts +1 -1
- package/dist/models/WorkflowRunStatus.d.ts +20 -2
- package/dist/models/WorkflowRunStatus.js +20 -2
- package/dist/models/index.d.ts +12 -0
- package/dist/models/index.js +12 -0
- package/docs/AppendEventRequest.md +37 -0
- package/docs/AppendMemoryChunkRequest.md +36 -0
- package/docs/CreateWorkflowDefinitionRequest.md +2 -0
- package/docs/EditMemoryChunkRequest.md +34 -0
- package/docs/EventResponse.md +45 -0
- package/docs/ListMemoryChunksResponse.md +34 -0
- package/docs/MemoryChunkResponse.md +39 -0
- package/docs/MemoryKind.md +33 -0
- package/docs/PaginatedResponseEventResponse.md +40 -0
- package/docs/PathPartApprovalDecision.md +33 -0
- package/docs/PathPartApprovalResponse.md +55 -0
- package/docs/PathPartsApi.md +171 -0
- package/docs/RejectFileRequest.md +35 -0
- package/docs/RunLockResponse.md +39 -0
- package/docs/UpdateWorkflowDefinitionRequest.md +2 -0
- package/docs/WorkflowDefinitionResponse.md +2 -0
- package/docs/WorkflowMemoryApi.md +390 -0
- package/docs/WorkflowRunStatus.md +1 -1
- package/docs/WorkflowRunsApi.md +387 -0
- package/package.json +1 -1
- package/src/apis/PathPartsApi.ts +234 -0
- package/src/apis/WorkflowMemoryApi.ts +522 -0
- package/src/apis/WorkflowRunsApi.ts +479 -0
- package/src/apis/index.ts +1 -0
- package/src/models/AppendEventRequest.ts +102 -0
- package/src/models/AppendMemoryChunkRequest.ts +105 -0
- package/src/models/ChunkBulkResponse.ts +4 -4
- package/src/models/ChunkContentItem.ts +2 -2
- package/src/models/ChunkResponse.ts +4 -4
- package/src/models/CreateThreadMessageRequest.ts +2 -2
- package/src/models/CreateWorkflowDefinitionRequest.ts +9 -1
- package/src/models/DocumentVersionMetadata.ts +4 -4
- package/src/models/DocumentVersionMetadataUpdate.ts +2 -2
- package/src/models/EditMemoryChunkRequest.ts +87 -0
- package/src/models/EventResponse.ts +132 -0
- package/src/models/ListMemoryChunksResponse.ts +91 -0
- package/src/models/MemoryChunkResponse.ts +111 -0
- package/src/models/MemoryKind.ts +57 -0
- package/src/models/PaginatedResponseEventResponse.ts +130 -0
- package/src/models/PathPartApprovalDecision.ts +58 -0
- package/src/models/PathPartApprovalResponse.ts +186 -0
- package/src/models/RejectFileRequest.ts +87 -0
- package/src/models/RunLockResponse.ts +101 -0
- package/src/models/ScoredChunkResponse.ts +4 -4
- package/src/models/SectionSystemMetadata.ts +1 -1
- package/src/models/TenantSettingsUpdate.ts +2 -2
- package/src/models/ThreadMessageDetailsInput.ts +2 -2
- package/src/models/ThreadMessageDetailsOutput.ts +2 -2
- package/src/models/ThreadMessageResponse.ts +2 -2
- package/src/models/UpdateChunkMetadataRequest.ts +2 -2
- package/src/models/UpdateTenantRequest.ts +4 -4
- package/src/models/UpdateWorkflowDefinitionRequest.ts +9 -1
- package/src/models/WorkflowDefinitionResponse.ts +10 -1
- package/src/models/WorkflowRunSnapshot.ts +1 -1
- package/src/models/WorkflowRunStatus.ts +20 -2
- package/src/models/index.ts +12 -0
|
@@ -0,0 +1,57 @@
|
|
|
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
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Category of a memory chunk inside a MEMORY.md document.
|
|
18
|
+
*
|
|
19
|
+
* Stored inside the chunk's HTML-comment fence as ``kind=<value>``.
|
|
20
|
+
* Not a Postgres enum — memory is file-backed, not table-backed.
|
|
21
|
+
* @export
|
|
22
|
+
*/
|
|
23
|
+
export const MemoryKind = {
|
|
24
|
+
Correction: 'CORRECTION',
|
|
25
|
+
Preference: 'PREFERENCE',
|
|
26
|
+
Example: 'EXAMPLE'
|
|
27
|
+
} as const;
|
|
28
|
+
export type MemoryKind = typeof MemoryKind[keyof typeof MemoryKind];
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
export function instanceOfMemoryKind(value: any): boolean {
|
|
32
|
+
for (const key in MemoryKind) {
|
|
33
|
+
if (Object.prototype.hasOwnProperty.call(MemoryKind, key)) {
|
|
34
|
+
if (MemoryKind[key as keyof typeof MemoryKind] === value) {
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
return false;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function MemoryKindFromJSON(json: any): MemoryKind {
|
|
43
|
+
return MemoryKindFromJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function MemoryKindFromJSONTyped(json: any, ignoreDiscriminator: boolean): MemoryKind {
|
|
47
|
+
return json as MemoryKind;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function MemoryKindToJSON(value?: MemoryKind | null): any {
|
|
51
|
+
return value as any;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function MemoryKindToJSONTyped(value: any, ignoreDiscriminator: boolean): MemoryKind {
|
|
55
|
+
return value as MemoryKind;
|
|
56
|
+
}
|
|
57
|
+
|
|
@@ -0,0 +1,130 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { EventResponse } from './EventResponse';
|
|
17
|
+
import {
|
|
18
|
+
EventResponseFromJSON,
|
|
19
|
+
EventResponseFromJSONTyped,
|
|
20
|
+
EventResponseToJSON,
|
|
21
|
+
EventResponseToJSONTyped,
|
|
22
|
+
} from './EventResponse';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface PaginatedResponseEventResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface PaginatedResponseEventResponse {
|
|
30
|
+
/**
|
|
31
|
+
* List of items
|
|
32
|
+
* @type {Array<EventResponse>}
|
|
33
|
+
* @memberof PaginatedResponseEventResponse
|
|
34
|
+
*/
|
|
35
|
+
items: Array<EventResponse>;
|
|
36
|
+
/**
|
|
37
|
+
* Total number of items
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof PaginatedResponseEventResponse
|
|
40
|
+
*/
|
|
41
|
+
total: number;
|
|
42
|
+
/**
|
|
43
|
+
* Number of items per page
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof PaginatedResponseEventResponse
|
|
46
|
+
*/
|
|
47
|
+
limit: number;
|
|
48
|
+
/**
|
|
49
|
+
* Number of items to skip
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof PaginatedResponseEventResponse
|
|
52
|
+
*/
|
|
53
|
+
offset: number;
|
|
54
|
+
}
|
|
55
|
+
export const PaginatedResponseEventResponsePropertyValidationAttributesMap: {
|
|
56
|
+
[property: string]: {
|
|
57
|
+
maxLength?: number,
|
|
58
|
+
minLength?: number,
|
|
59
|
+
pattern?: string,
|
|
60
|
+
maximum?: number,
|
|
61
|
+
exclusiveMaximum?: boolean,
|
|
62
|
+
minimum?: number,
|
|
63
|
+
exclusiveMinimum?: boolean,
|
|
64
|
+
multipleOf?: number,
|
|
65
|
+
maxItems?: number,
|
|
66
|
+
minItems?: number,
|
|
67
|
+
uniqueItems?: boolean
|
|
68
|
+
}
|
|
69
|
+
} = {
|
|
70
|
+
total: {
|
|
71
|
+
minimum: 0,
|
|
72
|
+
exclusiveMinimum: false,
|
|
73
|
+
},
|
|
74
|
+
limit: {
|
|
75
|
+
minimum: 1,
|
|
76
|
+
exclusiveMinimum: false,
|
|
77
|
+
},
|
|
78
|
+
offset: {
|
|
79
|
+
minimum: 0,
|
|
80
|
+
exclusiveMinimum: false,
|
|
81
|
+
},
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Check if a given object implements the PaginatedResponseEventResponse interface.
|
|
87
|
+
*/
|
|
88
|
+
export function instanceOfPaginatedResponseEventResponse(value: object): value is PaginatedResponseEventResponse {
|
|
89
|
+
if (!('items' in value) || value['items'] === undefined) return false;
|
|
90
|
+
if (!('total' in value) || value['total'] === undefined) return false;
|
|
91
|
+
if (!('limit' in value) || value['limit'] === undefined) return false;
|
|
92
|
+
if (!('offset' in value) || value['offset'] === undefined) return false;
|
|
93
|
+
return true;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export function PaginatedResponseEventResponseFromJSON(json: any): PaginatedResponseEventResponse {
|
|
97
|
+
return PaginatedResponseEventResponseFromJSONTyped(json, false);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export function PaginatedResponseEventResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedResponseEventResponse {
|
|
101
|
+
if (json == null) {
|
|
102
|
+
return json;
|
|
103
|
+
}
|
|
104
|
+
return {
|
|
105
|
+
|
|
106
|
+
'items': ((json['items'] as Array<any>).map(EventResponseFromJSON)),
|
|
107
|
+
'total': json['total'],
|
|
108
|
+
'limit': json['limit'],
|
|
109
|
+
'offset': json['offset'],
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export function PaginatedResponseEventResponseToJSON(json: any): PaginatedResponseEventResponse {
|
|
114
|
+
return PaginatedResponseEventResponseToJSONTyped(json, false);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
export function PaginatedResponseEventResponseToJSONTyped(value?: PaginatedResponseEventResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
118
|
+
if (value == null) {
|
|
119
|
+
return value;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
return {
|
|
123
|
+
|
|
124
|
+
'items': ((value['items'] as Array<any>).map(EventResponseToJSON)),
|
|
125
|
+
'total': value['total'],
|
|
126
|
+
'limit': value['limit'],
|
|
127
|
+
'offset': value['offset'],
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
|
|
@@ -0,0 +1,58 @@
|
|
|
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
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Per-file review status within a run (SeaHonor pilot).
|
|
18
|
+
*
|
|
19
|
+
* Now retained as the audit-history record (one row per (run, file));
|
|
20
|
+
* the current state of truth is ``path_part.approval_state``. The
|
|
21
|
+
* service dual-writes both.
|
|
22
|
+
* @export
|
|
23
|
+
*/
|
|
24
|
+
export const PathPartApprovalDecision = {
|
|
25
|
+
Pending: 'pending',
|
|
26
|
+
Approved: 'approved',
|
|
27
|
+
Rejected: 'rejected'
|
|
28
|
+
} as const;
|
|
29
|
+
export type PathPartApprovalDecision = typeof PathPartApprovalDecision[keyof typeof PathPartApprovalDecision];
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
export function instanceOfPathPartApprovalDecision(value: any): boolean {
|
|
33
|
+
for (const key in PathPartApprovalDecision) {
|
|
34
|
+
if (Object.prototype.hasOwnProperty.call(PathPartApprovalDecision, key)) {
|
|
35
|
+
if (PathPartApprovalDecision[key as keyof typeof PathPartApprovalDecision] === value) {
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
return false;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function PathPartApprovalDecisionFromJSON(json: any): PathPartApprovalDecision {
|
|
44
|
+
return PathPartApprovalDecisionFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function PathPartApprovalDecisionFromJSONTyped(json: any, ignoreDiscriminator: boolean): PathPartApprovalDecision {
|
|
48
|
+
return json as PathPartApprovalDecision;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function PathPartApprovalDecisionToJSON(value?: PathPartApprovalDecision | null): any {
|
|
52
|
+
return value as any;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function PathPartApprovalDecisionToJSONTyped(value: any, ignoreDiscriminator: boolean): PathPartApprovalDecision {
|
|
56
|
+
return value as PathPartApprovalDecision;
|
|
57
|
+
}
|
|
58
|
+
|
|
@@ -0,0 +1,186 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { PathPartApprovalDecision } from './PathPartApprovalDecision';
|
|
17
|
+
import {
|
|
18
|
+
PathPartApprovalDecisionFromJSON,
|
|
19
|
+
PathPartApprovalDecisionFromJSONTyped,
|
|
20
|
+
PathPartApprovalDecisionToJSON,
|
|
21
|
+
PathPartApprovalDecisionToJSONTyped,
|
|
22
|
+
} from './PathPartApprovalDecision';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Approval audit-history row over any path_part (file or folder).
|
|
26
|
+
*
|
|
27
|
+
* ``run_id`` is optional — None when the path_part was approved directly
|
|
28
|
+
* without a workflow-run context.
|
|
29
|
+
* @export
|
|
30
|
+
* @interface PathPartApprovalResponse
|
|
31
|
+
*/
|
|
32
|
+
export interface PathPartApprovalResponse {
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {string}
|
|
36
|
+
* @memberof PathPartApprovalResponse
|
|
37
|
+
*/
|
|
38
|
+
id: string;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @type {string}
|
|
42
|
+
* @memberof PathPartApprovalResponse
|
|
43
|
+
*/
|
|
44
|
+
runId: string | null;
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @type {string}
|
|
48
|
+
* @memberof PathPartApprovalResponse
|
|
49
|
+
*/
|
|
50
|
+
pathPartId: string;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @type {PathPartApprovalDecision}
|
|
54
|
+
* @memberof PathPartApprovalResponse
|
|
55
|
+
*/
|
|
56
|
+
status: PathPartApprovalDecision;
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
* @type {string}
|
|
60
|
+
* @memberof PathPartApprovalResponse
|
|
61
|
+
*/
|
|
62
|
+
reviewerId: string | null;
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
* @type {Date}
|
|
66
|
+
* @memberof PathPartApprovalResponse
|
|
67
|
+
*/
|
|
68
|
+
reviewedAt: Date | null;
|
|
69
|
+
/**
|
|
70
|
+
*
|
|
71
|
+
* @type {string}
|
|
72
|
+
* @memberof PathPartApprovalResponse
|
|
73
|
+
*/
|
|
74
|
+
rejectionReason: string | null;
|
|
75
|
+
/**
|
|
76
|
+
*
|
|
77
|
+
* @type {string}
|
|
78
|
+
* @memberof PathPartApprovalResponse
|
|
79
|
+
*/
|
|
80
|
+
unapprovedBy: string | null;
|
|
81
|
+
/**
|
|
82
|
+
*
|
|
83
|
+
* @type {Date}
|
|
84
|
+
* @memberof PathPartApprovalResponse
|
|
85
|
+
*/
|
|
86
|
+
unapprovedAt: Date | null;
|
|
87
|
+
/**
|
|
88
|
+
*
|
|
89
|
+
* @type {Date}
|
|
90
|
+
* @memberof PathPartApprovalResponse
|
|
91
|
+
*/
|
|
92
|
+
createdAt: Date;
|
|
93
|
+
/**
|
|
94
|
+
*
|
|
95
|
+
* @type {Date}
|
|
96
|
+
* @memberof PathPartApprovalResponse
|
|
97
|
+
*/
|
|
98
|
+
updatedAt: Date;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
export const PathPartApprovalResponsePropertyValidationAttributesMap: {
|
|
103
|
+
[property: string]: {
|
|
104
|
+
maxLength?: number,
|
|
105
|
+
minLength?: number,
|
|
106
|
+
pattern?: string,
|
|
107
|
+
maximum?: number,
|
|
108
|
+
exclusiveMaximum?: boolean,
|
|
109
|
+
minimum?: number,
|
|
110
|
+
exclusiveMinimum?: boolean,
|
|
111
|
+
multipleOf?: number,
|
|
112
|
+
maxItems?: number,
|
|
113
|
+
minItems?: number,
|
|
114
|
+
uniqueItems?: boolean
|
|
115
|
+
}
|
|
116
|
+
} = {
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* Check if a given object implements the PathPartApprovalResponse interface.
|
|
122
|
+
*/
|
|
123
|
+
export function instanceOfPathPartApprovalResponse(value: object): value is PathPartApprovalResponse {
|
|
124
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
125
|
+
if (!('runId' in value) || value['runId'] === undefined) return false;
|
|
126
|
+
if (!('pathPartId' in value) || value['pathPartId'] === undefined) return false;
|
|
127
|
+
if (!('status' in value) || value['status'] === undefined) return false;
|
|
128
|
+
if (!('reviewerId' in value) || value['reviewerId'] === undefined) return false;
|
|
129
|
+
if (!('reviewedAt' in value) || value['reviewedAt'] === undefined) return false;
|
|
130
|
+
if (!('rejectionReason' in value) || value['rejectionReason'] === undefined) return false;
|
|
131
|
+
if (!('unapprovedBy' in value) || value['unapprovedBy'] === undefined) return false;
|
|
132
|
+
if (!('unapprovedAt' in value) || value['unapprovedAt'] === undefined) return false;
|
|
133
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
134
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
|
|
135
|
+
return true;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
export function PathPartApprovalResponseFromJSON(json: any): PathPartApprovalResponse {
|
|
139
|
+
return PathPartApprovalResponseFromJSONTyped(json, false);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
export function PathPartApprovalResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PathPartApprovalResponse {
|
|
143
|
+
if (json == null) {
|
|
144
|
+
return json;
|
|
145
|
+
}
|
|
146
|
+
return {
|
|
147
|
+
|
|
148
|
+
'id': json['id'],
|
|
149
|
+
'runId': json['run_id'],
|
|
150
|
+
'pathPartId': json['path_part_id'],
|
|
151
|
+
'status': PathPartApprovalDecisionFromJSON(json['status']),
|
|
152
|
+
'reviewerId': json['reviewer_id'],
|
|
153
|
+
'reviewedAt': (json['reviewed_at'] == null ? null : new Date(json['reviewed_at'])),
|
|
154
|
+
'rejectionReason': json['rejection_reason'],
|
|
155
|
+
'unapprovedBy': json['unapproved_by'],
|
|
156
|
+
'unapprovedAt': (json['unapproved_at'] == null ? null : new Date(json['unapproved_at'])),
|
|
157
|
+
'createdAt': (new Date(json['created_at'])),
|
|
158
|
+
'updatedAt': (new Date(json['updated_at'])),
|
|
159
|
+
};
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
export function PathPartApprovalResponseToJSON(json: any): PathPartApprovalResponse {
|
|
163
|
+
return PathPartApprovalResponseToJSONTyped(json, false);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
export function PathPartApprovalResponseToJSONTyped(value?: PathPartApprovalResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
167
|
+
if (value == null) {
|
|
168
|
+
return value;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
return {
|
|
172
|
+
|
|
173
|
+
'id': value['id'],
|
|
174
|
+
'run_id': value['runId'],
|
|
175
|
+
'path_part_id': value['pathPartId'],
|
|
176
|
+
'status': PathPartApprovalDecisionToJSON(value['status']),
|
|
177
|
+
'reviewer_id': value['reviewerId'],
|
|
178
|
+
'reviewed_at': value['reviewedAt'] == null ? value['reviewedAt'] : value['reviewedAt'].toISOString(),
|
|
179
|
+
'rejection_reason': value['rejectionReason'],
|
|
180
|
+
'unapproved_by': value['unapprovedBy'],
|
|
181
|
+
'unapproved_at': value['unapprovedAt'] == null ? value['unapprovedAt'] : value['unapprovedAt'].toISOString(),
|
|
182
|
+
'created_at': value['createdAt'].toISOString(),
|
|
183
|
+
'updated_at': value['updatedAt'].toISOString(),
|
|
184
|
+
};
|
|
185
|
+
}
|
|
186
|
+
|
|
@@ -0,0 +1,87 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
* Body for ``POST /workflow-runs/{run}/files/{file}/reject``.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface RejectFileRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface RejectFileRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof RejectFileRequest
|
|
26
|
+
*/
|
|
27
|
+
reason: string;
|
|
28
|
+
}
|
|
29
|
+
export const RejectFileRequestPropertyValidationAttributesMap: {
|
|
30
|
+
[property: string]: {
|
|
31
|
+
maxLength?: number,
|
|
32
|
+
minLength?: number,
|
|
33
|
+
pattern?: string,
|
|
34
|
+
maximum?: number,
|
|
35
|
+
exclusiveMaximum?: boolean,
|
|
36
|
+
minimum?: number,
|
|
37
|
+
exclusiveMinimum?: boolean,
|
|
38
|
+
multipleOf?: number,
|
|
39
|
+
maxItems?: number,
|
|
40
|
+
minItems?: number,
|
|
41
|
+
uniqueItems?: boolean
|
|
42
|
+
}
|
|
43
|
+
} = {
|
|
44
|
+
reason: {
|
|
45
|
+
maxLength: 2048,
|
|
46
|
+
minLength: 1,
|
|
47
|
+
},
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the RejectFileRequest interface.
|
|
53
|
+
*/
|
|
54
|
+
export function instanceOfRejectFileRequest(value: object): value is RejectFileRequest {
|
|
55
|
+
if (!('reason' in value) || value['reason'] === undefined) return false;
|
|
56
|
+
return true;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function RejectFileRequestFromJSON(json: any): RejectFileRequest {
|
|
60
|
+
return RejectFileRequestFromJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function RejectFileRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): RejectFileRequest {
|
|
64
|
+
if (json == null) {
|
|
65
|
+
return json;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'reason': json['reason'],
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function RejectFileRequestToJSON(json: any): RejectFileRequest {
|
|
74
|
+
return RejectFileRequestToJSONTyped(json, false);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function RejectFileRequestToJSONTyped(value?: RejectFileRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
78
|
+
if (value == null) {
|
|
79
|
+
return value;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
return {
|
|
83
|
+
|
|
84
|
+
'reason': value['reason'],
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
|
|
@@ -0,0 +1,101 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
* Reviewer-lock state on a workflow run.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface RunLockResponse
|
|
20
|
+
*/
|
|
21
|
+
export interface RunLockResponse {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof RunLockResponse
|
|
26
|
+
*/
|
|
27
|
+
runId: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof RunLockResponse
|
|
32
|
+
*/
|
|
33
|
+
lockUserId: string | null;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {Date}
|
|
37
|
+
* @memberof RunLockResponse
|
|
38
|
+
*/
|
|
39
|
+
lockAcquiredAt: Date | null;
|
|
40
|
+
}
|
|
41
|
+
export const RunLockResponsePropertyValidationAttributesMap: {
|
|
42
|
+
[property: string]: {
|
|
43
|
+
maxLength?: number,
|
|
44
|
+
minLength?: number,
|
|
45
|
+
pattern?: string,
|
|
46
|
+
maximum?: number,
|
|
47
|
+
exclusiveMaximum?: boolean,
|
|
48
|
+
minimum?: number,
|
|
49
|
+
exclusiveMinimum?: boolean,
|
|
50
|
+
multipleOf?: number,
|
|
51
|
+
maxItems?: number,
|
|
52
|
+
minItems?: number,
|
|
53
|
+
uniqueItems?: boolean
|
|
54
|
+
}
|
|
55
|
+
} = {
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Check if a given object implements the RunLockResponse interface.
|
|
61
|
+
*/
|
|
62
|
+
export function instanceOfRunLockResponse(value: object): value is RunLockResponse {
|
|
63
|
+
if (!('runId' in value) || value['runId'] === undefined) return false;
|
|
64
|
+
if (!('lockUserId' in value) || value['lockUserId'] === undefined) return false;
|
|
65
|
+
if (!('lockAcquiredAt' in value) || value['lockAcquiredAt'] === undefined) return false;
|
|
66
|
+
return true;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function RunLockResponseFromJSON(json: any): RunLockResponse {
|
|
70
|
+
return RunLockResponseFromJSONTyped(json, false);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function RunLockResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): RunLockResponse {
|
|
74
|
+
if (json == null) {
|
|
75
|
+
return json;
|
|
76
|
+
}
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'runId': json['run_id'],
|
|
80
|
+
'lockUserId': json['lock_user_id'],
|
|
81
|
+
'lockAcquiredAt': (json['lock_acquired_at'] == null ? null : new Date(json['lock_acquired_at'])),
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export function RunLockResponseToJSON(json: any): RunLockResponse {
|
|
86
|
+
return RunLockResponseToJSONTyped(json, false);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export function RunLockResponseToJSONTyped(value?: RunLockResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
90
|
+
if (value == null) {
|
|
91
|
+
return value;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
return {
|
|
95
|
+
|
|
96
|
+
'run_id': value['runId'],
|
|
97
|
+
'lock_user_id': value['lockUserId'],
|
|
98
|
+
'lock_acquired_at': value['lockAcquiredAt'] == null ? value['lockAcquiredAt'] : value['lockAcquiredAt'].toISOString(),
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
|
|
@@ -145,17 +145,17 @@ export interface ScoredChunkResponse {
|
|
|
145
145
|
*/
|
|
146
146
|
assetS3Urls?: Array<string>;
|
|
147
147
|
/**
|
|
148
|
-
*
|
|
148
|
+
* Ancestor document info (populated when with_document=true)
|
|
149
149
|
* @type {ChunkDocumentResponse}
|
|
150
150
|
* @memberof ScoredChunkResponse
|
|
151
151
|
*/
|
|
152
|
-
document?: ChunkDocumentResponse;
|
|
152
|
+
document?: ChunkDocumentResponse | null;
|
|
153
153
|
/**
|
|
154
|
-
*
|
|
154
|
+
* Ancestor document version info (populated when with_document=true)
|
|
155
155
|
* @type {ChunkDocumentVersionResponse}
|
|
156
156
|
* @memberof ScoredChunkResponse
|
|
157
157
|
*/
|
|
158
|
-
documentVersion?: ChunkDocumentVersionResponse;
|
|
158
|
+
documentVersion?: ChunkDocumentVersionResponse | null;
|
|
159
159
|
/**
|
|
160
160
|
* Search ranking score returned by Qdrant
|
|
161
161
|
* @type {number}
|
|
@@ -32,7 +32,7 @@ export interface SectionSystemMetadata {
|
|
|
32
32
|
* @type {InformationStatistics}
|
|
33
33
|
* @memberof SectionSystemMetadata
|
|
34
34
|
*/
|
|
35
|
-
informationStatistics?: InformationStatistics;
|
|
35
|
+
informationStatistics?: InformationStatistics | null;
|
|
36
36
|
}
|
|
37
37
|
export const SectionSystemMetadataPropertyValidationAttributesMap: {
|
|
38
38
|
[property: string]: {
|
|
@@ -77,11 +77,11 @@ export interface TenantSettingsUpdate {
|
|
|
77
77
|
*/
|
|
78
78
|
themeOverrides?: { [key: string]: string; } | null;
|
|
79
79
|
/**
|
|
80
|
-
*
|
|
80
|
+
* Tenant-wide invite-link configuration
|
|
81
81
|
* @type {InviteLinkSettingsRequest}
|
|
82
82
|
* @memberof TenantSettingsUpdate
|
|
83
83
|
*/
|
|
84
|
-
inviteLink?: InviteLinkSettingsRequest;
|
|
84
|
+
inviteLink?: InviteLinkSettingsRequest | null;
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
|
|
@@ -41,11 +41,11 @@ export interface ThreadMessageDetailsInput {
|
|
|
41
41
|
*/
|
|
42
42
|
steps?: Array<StepInput>;
|
|
43
43
|
/**
|
|
44
|
-
*
|
|
44
|
+
* Agent history checkpoint. Present only on role=SYSTEM messages written by the agent's archival path.
|
|
45
45
|
* @type {CheckpointDetails}
|
|
46
46
|
* @memberof ThreadMessageDetailsInput
|
|
47
47
|
*/
|
|
48
|
-
checkpoint?: CheckpointDetails;
|
|
48
|
+
checkpoint?: CheckpointDetails | null;
|
|
49
49
|
}
|
|
50
50
|
export const ThreadMessageDetailsInputPropertyValidationAttributesMap: {
|
|
51
51
|
[property: string]: {
|
|
@@ -41,11 +41,11 @@ export interface ThreadMessageDetailsOutput {
|
|
|
41
41
|
*/
|
|
42
42
|
steps?: Array<StepOutput>;
|
|
43
43
|
/**
|
|
44
|
-
*
|
|
44
|
+
* Agent history checkpoint. Present only on role=SYSTEM messages written by the agent's archival path.
|
|
45
45
|
* @type {CheckpointDetails}
|
|
46
46
|
* @memberof ThreadMessageDetailsOutput
|
|
47
47
|
*/
|
|
48
|
-
checkpoint?: CheckpointDetails;
|
|
48
|
+
checkpoint?: CheckpointDetails | null;
|
|
49
49
|
}
|
|
50
50
|
export const ThreadMessageDetailsOutputPropertyValidationAttributesMap: {
|
|
51
51
|
[property: string]: {
|