@knowledge-stack/ksapi 1.83.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 +18 -0
- package/README.md +17 -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/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/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 +1 -1
- 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/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 +1 -1
- package/dist/esm/models/WorkflowDefinitionResponse.d.ts +1 -1
- package/dist/esm/models/WorkflowRunSnapshot.d.ts +1 -1
- package/dist/esm/models/index.d.ts +8 -0
- package/dist/esm/models/index.js +8 -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 +1 -1
- 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/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 +1 -1
- package/dist/models/WorkflowDefinitionResponse.d.ts +1 -1
- package/dist/models/WorkflowRunSnapshot.d.ts +1 -1
- package/dist/models/index.d.ts +8 -0
- package/dist/models/index.js +8 -0
- package/docs/AppendEventRequest.md +37 -0
- package/docs/AppendMemoryChunkRequest.md +36 -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/PathPartsApi.md +171 -0
- package/docs/WorkflowMemoryApi.md +390 -0
- package/package.json +1 -1
- package/src/apis/PathPartsApi.ts +234 -0
- package/src/apis/WorkflowMemoryApi.ts +522 -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 +1 -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/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 +1 -1
- package/src/models/WorkflowDefinitionResponse.ts +1 -1
- package/src/models/WorkflowRunSnapshot.ts +1 -1
- package/src/models/index.ts +8 -0
|
@@ -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
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface EditMemoryChunkRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface EditMemoryChunkRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof EditMemoryChunkRequest
|
|
22
|
+
*/
|
|
23
|
+
body: string;
|
|
24
|
+
}
|
|
25
|
+
export declare const EditMemoryChunkRequestPropertyValidationAttributesMap: {
|
|
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 EditMemoryChunkRequest interface.
|
|
42
|
+
*/
|
|
43
|
+
export declare function instanceOfEditMemoryChunkRequest(value: object): value is EditMemoryChunkRequest;
|
|
44
|
+
export declare function EditMemoryChunkRequestFromJSON(json: any): EditMemoryChunkRequest;
|
|
45
|
+
export declare function EditMemoryChunkRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): EditMemoryChunkRequest;
|
|
46
|
+
export declare function EditMemoryChunkRequestToJSON(json: any): EditMemoryChunkRequest;
|
|
47
|
+
export declare function EditMemoryChunkRequestToJSONTyped(value?: EditMemoryChunkRequest | 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 EditMemoryChunkRequestPropertyValidationAttributesMap = {
|
|
15
|
+
body: {
|
|
16
|
+
maxLength: 16384,
|
|
17
|
+
minLength: 1,
|
|
18
|
+
},
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* Check if a given object implements the EditMemoryChunkRequest interface.
|
|
22
|
+
*/
|
|
23
|
+
export function instanceOfEditMemoryChunkRequest(value) {
|
|
24
|
+
if (!('body' in value) || value['body'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
export function EditMemoryChunkRequestFromJSON(json) {
|
|
29
|
+
return EditMemoryChunkRequestFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
export function EditMemoryChunkRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'body': json['body'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export function EditMemoryChunkRequestToJSON(json) {
|
|
40
|
+
return EditMemoryChunkRequestToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
export function EditMemoryChunkRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'body': value['body'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
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
|
+
* One event row, anchored to a path_part subject.
|
|
14
|
+
*
|
|
15
|
+
* ``kind`` is namespaced ``domain.action`` (e.g. ``workflow.approval``,
|
|
16
|
+
* ``document.created``). ``payload`` is the domain-specific structured
|
|
17
|
+
* JSON associated with the event.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface EventResponse
|
|
20
|
+
*/
|
|
21
|
+
export interface EventResponse {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof EventResponse
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof EventResponse
|
|
32
|
+
*/
|
|
33
|
+
subjectPathPartId: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof EventResponse
|
|
38
|
+
*/
|
|
39
|
+
kind: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {Date}
|
|
43
|
+
* @memberof EventResponse
|
|
44
|
+
*/
|
|
45
|
+
ts: Date;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof EventResponse
|
|
50
|
+
*/
|
|
51
|
+
actorUserId: string | null;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {{ [key: string]: any; }}
|
|
55
|
+
* @memberof EventResponse
|
|
56
|
+
*/
|
|
57
|
+
payload: {
|
|
58
|
+
[key: string]: any;
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
export declare const EventResponsePropertyValidationAttributesMap: {
|
|
62
|
+
[property: string]: {
|
|
63
|
+
maxLength?: number;
|
|
64
|
+
minLength?: number;
|
|
65
|
+
pattern?: string;
|
|
66
|
+
maximum?: number;
|
|
67
|
+
exclusiveMaximum?: boolean;
|
|
68
|
+
minimum?: number;
|
|
69
|
+
exclusiveMinimum?: boolean;
|
|
70
|
+
multipleOf?: number;
|
|
71
|
+
maxItems?: number;
|
|
72
|
+
minItems?: number;
|
|
73
|
+
uniqueItems?: boolean;
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
/**
|
|
77
|
+
* Check if a given object implements the EventResponse interface.
|
|
78
|
+
*/
|
|
79
|
+
export declare function instanceOfEventResponse(value: object): value is EventResponse;
|
|
80
|
+
export declare function EventResponseFromJSON(json: any): EventResponse;
|
|
81
|
+
export declare function EventResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): EventResponse;
|
|
82
|
+
export declare function EventResponseToJSON(json: any): EventResponse;
|
|
83
|
+
export declare function EventResponseToJSONTyped(value?: EventResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,64 @@
|
|
|
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 EventResponsePropertyValidationAttributesMap = {};
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the EventResponse interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfEventResponse(value) {
|
|
19
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('subjectPathPartId' in value) || value['subjectPathPartId'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('kind' in value) || value['kind'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
if (!('ts' in value) || value['ts'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('actorUserId' in value) || value['actorUserId'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('payload' in value) || value['payload'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
export function EventResponseFromJSON(json) {
|
|
34
|
+
return EventResponseFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function EventResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'id': json['id'],
|
|
42
|
+
'subjectPathPartId': json['subject_path_part_id'],
|
|
43
|
+
'kind': json['kind'],
|
|
44
|
+
'ts': (new Date(json['ts'])),
|
|
45
|
+
'actorUserId': json['actor_user_id'],
|
|
46
|
+
'payload': json['payload'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
export function EventResponseToJSON(json) {
|
|
50
|
+
return EventResponseToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
export function EventResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'id': value['id'],
|
|
58
|
+
'subject_path_part_id': value['subjectPathPartId'],
|
|
59
|
+
'kind': value['kind'],
|
|
60
|
+
'ts': value['ts'].toISOString(),
|
|
61
|
+
'actor_user_id': value['actorUserId'],
|
|
62
|
+
'payload': value['payload'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
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 { MemoryChunkResponse } from './MemoryChunkResponse';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ListMemoryChunksResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface ListMemoryChunksResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<MemoryChunkResponse>}
|
|
22
|
+
* @memberof ListMemoryChunksResponse
|
|
23
|
+
*/
|
|
24
|
+
chunks: Array<MemoryChunkResponse>;
|
|
25
|
+
}
|
|
26
|
+
export declare const ListMemoryChunksResponsePropertyValidationAttributesMap: {
|
|
27
|
+
[property: string]: {
|
|
28
|
+
maxLength?: number;
|
|
29
|
+
minLength?: number;
|
|
30
|
+
pattern?: string;
|
|
31
|
+
maximum?: number;
|
|
32
|
+
exclusiveMaximum?: boolean;
|
|
33
|
+
minimum?: number;
|
|
34
|
+
exclusiveMinimum?: boolean;
|
|
35
|
+
multipleOf?: number;
|
|
36
|
+
maxItems?: number;
|
|
37
|
+
minItems?: number;
|
|
38
|
+
uniqueItems?: boolean;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* Check if a given object implements the ListMemoryChunksResponse interface.
|
|
43
|
+
*/
|
|
44
|
+
export declare function instanceOfListMemoryChunksResponse(value: object): value is ListMemoryChunksResponse;
|
|
45
|
+
export declare function ListMemoryChunksResponseFromJSON(json: any): ListMemoryChunksResponse;
|
|
46
|
+
export declare function ListMemoryChunksResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListMemoryChunksResponse;
|
|
47
|
+
export declare function ListMemoryChunksResponseToJSON(json: any): ListMemoryChunksResponse;
|
|
48
|
+
export declare function ListMemoryChunksResponseToJSONTyped(value?: ListMemoryChunksResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,45 @@
|
|
|
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 { MemoryChunkResponseFromJSON, MemoryChunkResponseToJSON, } from './MemoryChunkResponse';
|
|
15
|
+
export const ListMemoryChunksResponsePropertyValidationAttributesMap = {};
|
|
16
|
+
/**
|
|
17
|
+
* Check if a given object implements the ListMemoryChunksResponse interface.
|
|
18
|
+
*/
|
|
19
|
+
export function instanceOfListMemoryChunksResponse(value) {
|
|
20
|
+
if (!('chunks' in value) || value['chunks'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
export function ListMemoryChunksResponseFromJSON(json) {
|
|
25
|
+
return ListMemoryChunksResponseFromJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
export function ListMemoryChunksResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
if (json == null) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
'chunks': (json['chunks'].map(MemoryChunkResponseFromJSON)),
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
export function ListMemoryChunksResponseToJSON(json) {
|
|
36
|
+
return ListMemoryChunksResponseToJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
export function ListMemoryChunksResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
39
|
+
if (value == null) {
|
|
40
|
+
return value;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'chunks': (value['chunks'].map(MemoryChunkResponseToJSON)),
|
|
44
|
+
};
|
|
45
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
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 { MemoryKind } from './MemoryKind';
|
|
13
|
+
/**
|
|
14
|
+
* Parsed view of one fenced chunk in MEMORY.md.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface MemoryChunkResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface MemoryChunkResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof MemoryChunkResponse
|
|
23
|
+
*/
|
|
24
|
+
chunkId: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {MemoryKind}
|
|
28
|
+
* @memberof MemoryChunkResponse
|
|
29
|
+
*/
|
|
30
|
+
kind: MemoryKind;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof MemoryChunkResponse
|
|
35
|
+
*/
|
|
36
|
+
body: string;
|
|
37
|
+
}
|
|
38
|
+
export declare const MemoryChunkResponsePropertyValidationAttributesMap: {
|
|
39
|
+
[property: string]: {
|
|
40
|
+
maxLength?: number;
|
|
41
|
+
minLength?: number;
|
|
42
|
+
pattern?: string;
|
|
43
|
+
maximum?: number;
|
|
44
|
+
exclusiveMaximum?: boolean;
|
|
45
|
+
minimum?: number;
|
|
46
|
+
exclusiveMinimum?: boolean;
|
|
47
|
+
multipleOf?: number;
|
|
48
|
+
maxItems?: number;
|
|
49
|
+
minItems?: number;
|
|
50
|
+
uniqueItems?: boolean;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* Check if a given object implements the MemoryChunkResponse interface.
|
|
55
|
+
*/
|
|
56
|
+
export declare function instanceOfMemoryChunkResponse(value: object): value is MemoryChunkResponse;
|
|
57
|
+
export declare function MemoryChunkResponseFromJSON(json: any): MemoryChunkResponse;
|
|
58
|
+
export declare function MemoryChunkResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): MemoryChunkResponse;
|
|
59
|
+
export declare function MemoryChunkResponseToJSON(json: any): MemoryChunkResponse;
|
|
60
|
+
export declare function MemoryChunkResponseToJSONTyped(value?: MemoryChunkResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,53 @@
|
|
|
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 { MemoryKindFromJSON, MemoryKindToJSON, } from './MemoryKind';
|
|
15
|
+
export const MemoryChunkResponsePropertyValidationAttributesMap = {};
|
|
16
|
+
/**
|
|
17
|
+
* Check if a given object implements the MemoryChunkResponse interface.
|
|
18
|
+
*/
|
|
19
|
+
export function instanceOfMemoryChunkResponse(value) {
|
|
20
|
+
if (!('chunkId' in value) || value['chunkId'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('kind' in value) || value['kind'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('body' in value) || value['body'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
export function MemoryChunkResponseFromJSON(json) {
|
|
29
|
+
return MemoryChunkResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
export function MemoryChunkResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'chunkId': json['chunk_id'],
|
|
37
|
+
'kind': MemoryKindFromJSON(json['kind']),
|
|
38
|
+
'body': json['body'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
export function MemoryChunkResponseToJSON(json) {
|
|
42
|
+
return MemoryChunkResponseToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
export function MemoryChunkResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'chunk_id': value['chunkId'],
|
|
50
|
+
'kind': MemoryKindToJSON(value['kind']),
|
|
51
|
+
'body': value['body'],
|
|
52
|
+
};
|
|
53
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
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
|
+
* Category of a memory chunk inside a MEMORY.md document.
|
|
14
|
+
*
|
|
15
|
+
* Stored inside the chunk's HTML-comment fence as ``kind=<value>``.
|
|
16
|
+
* Not a Postgres enum — memory is file-backed, not table-backed.
|
|
17
|
+
* @export
|
|
18
|
+
*/
|
|
19
|
+
export declare const MemoryKind: {
|
|
20
|
+
readonly Correction: "CORRECTION";
|
|
21
|
+
readonly Preference: "PREFERENCE";
|
|
22
|
+
readonly Example: "EXAMPLE";
|
|
23
|
+
};
|
|
24
|
+
export type MemoryKind = typeof MemoryKind[keyof typeof MemoryKind];
|
|
25
|
+
export declare function instanceOfMemoryKind(value: any): boolean;
|
|
26
|
+
export declare function MemoryKindFromJSON(json: any): MemoryKind;
|
|
27
|
+
export declare function MemoryKindFromJSONTyped(json: any, ignoreDiscriminator: boolean): MemoryKind;
|
|
28
|
+
export declare function MemoryKindToJSON(value?: MemoryKind | null): any;
|
|
29
|
+
export declare function MemoryKindToJSONTyped(value: any, ignoreDiscriminator: boolean): MemoryKind;
|
|
@@ -0,0 +1,47 @@
|
|
|
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
|
+
* Category of a memory chunk inside a MEMORY.md document.
|
|
16
|
+
*
|
|
17
|
+
* Stored inside the chunk's HTML-comment fence as ``kind=<value>``.
|
|
18
|
+
* Not a Postgres enum — memory is file-backed, not table-backed.
|
|
19
|
+
* @export
|
|
20
|
+
*/
|
|
21
|
+
export const MemoryKind = {
|
|
22
|
+
Correction: 'CORRECTION',
|
|
23
|
+
Preference: 'PREFERENCE',
|
|
24
|
+
Example: 'EXAMPLE'
|
|
25
|
+
};
|
|
26
|
+
export function instanceOfMemoryKind(value) {
|
|
27
|
+
for (const key in MemoryKind) {
|
|
28
|
+
if (Object.prototype.hasOwnProperty.call(MemoryKind, key)) {
|
|
29
|
+
if (MemoryKind[key] === value) {
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
return false;
|
|
35
|
+
}
|
|
36
|
+
export function MemoryKindFromJSON(json) {
|
|
37
|
+
return MemoryKindFromJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
export function MemoryKindFromJSONTyped(json, ignoreDiscriminator) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
export function MemoryKindToJSON(value) {
|
|
43
|
+
return value;
|
|
44
|
+
}
|
|
45
|
+
export function MemoryKindToJSONTyped(value, ignoreDiscriminator) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
@@ -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 { EventResponse } from './EventResponse';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface PaginatedResponseEventResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface PaginatedResponseEventResponse {
|
|
19
|
+
/**
|
|
20
|
+
* List of items
|
|
21
|
+
* @type {Array<EventResponse>}
|
|
22
|
+
* @memberof PaginatedResponseEventResponse
|
|
23
|
+
*/
|
|
24
|
+
items: Array<EventResponse>;
|
|
25
|
+
/**
|
|
26
|
+
* Total number of items
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof PaginatedResponseEventResponse
|
|
29
|
+
*/
|
|
30
|
+
total: number;
|
|
31
|
+
/**
|
|
32
|
+
* Number of items per page
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof PaginatedResponseEventResponse
|
|
35
|
+
*/
|
|
36
|
+
limit: number;
|
|
37
|
+
/**
|
|
38
|
+
* Number of items to skip
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof PaginatedResponseEventResponse
|
|
41
|
+
*/
|
|
42
|
+
offset: number;
|
|
43
|
+
}
|
|
44
|
+
export declare const PaginatedResponseEventResponsePropertyValidationAttributesMap: {
|
|
45
|
+
[property: string]: {
|
|
46
|
+
maxLength?: number;
|
|
47
|
+
minLength?: number;
|
|
48
|
+
pattern?: string;
|
|
49
|
+
maximum?: number;
|
|
50
|
+
exclusiveMaximum?: boolean;
|
|
51
|
+
minimum?: number;
|
|
52
|
+
exclusiveMinimum?: boolean;
|
|
53
|
+
multipleOf?: number;
|
|
54
|
+
maxItems?: number;
|
|
55
|
+
minItems?: number;
|
|
56
|
+
uniqueItems?: boolean;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
/**
|
|
60
|
+
* Check if a given object implements the PaginatedResponseEventResponse interface.
|
|
61
|
+
*/
|
|
62
|
+
export declare function instanceOfPaginatedResponseEventResponse(value: object): value is PaginatedResponseEventResponse;
|
|
63
|
+
export declare function PaginatedResponseEventResponseFromJSON(json: any): PaginatedResponseEventResponse;
|
|
64
|
+
export declare function PaginatedResponseEventResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedResponseEventResponse;
|
|
65
|
+
export declare function PaginatedResponseEventResponseToJSON(json: any): PaginatedResponseEventResponse;
|
|
66
|
+
export declare function PaginatedResponseEventResponseToJSONTyped(value?: PaginatedResponseEventResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,70 @@
|
|
|
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 { EventResponseFromJSON, EventResponseToJSON, } from './EventResponse';
|
|
15
|
+
export const PaginatedResponseEventResponsePropertyValidationAttributesMap = {
|
|
16
|
+
total: {
|
|
17
|
+
minimum: 0,
|
|
18
|
+
exclusiveMinimum: false,
|
|
19
|
+
},
|
|
20
|
+
limit: {
|
|
21
|
+
minimum: 1,
|
|
22
|
+
exclusiveMinimum: false,
|
|
23
|
+
},
|
|
24
|
+
offset: {
|
|
25
|
+
minimum: 0,
|
|
26
|
+
exclusiveMinimum: false,
|
|
27
|
+
},
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Check if a given object implements the PaginatedResponseEventResponse interface.
|
|
31
|
+
*/
|
|
32
|
+
export function instanceOfPaginatedResponseEventResponse(value) {
|
|
33
|
+
if (!('items' in value) || value['items'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('total' in value) || value['total'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('limit' in value) || value['limit'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('offset' in value) || value['offset'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
export function PaginatedResponseEventResponseFromJSON(json) {
|
|
44
|
+
return PaginatedResponseEventResponseFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
export function PaginatedResponseEventResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
47
|
+
if (json == null) {
|
|
48
|
+
return json;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'items': (json['items'].map(EventResponseFromJSON)),
|
|
52
|
+
'total': json['total'],
|
|
53
|
+
'limit': json['limit'],
|
|
54
|
+
'offset': json['offset'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
export function PaginatedResponseEventResponseToJSON(json) {
|
|
58
|
+
return PaginatedResponseEventResponseToJSONTyped(json, false);
|
|
59
|
+
}
|
|
60
|
+
export function PaginatedResponseEventResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
61
|
+
if (value == null) {
|
|
62
|
+
return value;
|
|
63
|
+
}
|
|
64
|
+
return {
|
|
65
|
+
'items': (value['items'].map(EventResponseToJSON)),
|
|
66
|
+
'total': value['total'],
|
|
67
|
+
'limit': value['limit'],
|
|
68
|
+
'offset': value['offset'],
|
|
69
|
+
};
|
|
70
|
+
}
|
|
@@ -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}
|