@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,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Knowledge Stack API
|
|
6
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.EditMemoryChunkRequestPropertyValidationAttributesMap = void 0;
|
|
17
|
+
exports.instanceOfEditMemoryChunkRequest = instanceOfEditMemoryChunkRequest;
|
|
18
|
+
exports.EditMemoryChunkRequestFromJSON = EditMemoryChunkRequestFromJSON;
|
|
19
|
+
exports.EditMemoryChunkRequestFromJSONTyped = EditMemoryChunkRequestFromJSONTyped;
|
|
20
|
+
exports.EditMemoryChunkRequestToJSON = EditMemoryChunkRequestToJSON;
|
|
21
|
+
exports.EditMemoryChunkRequestToJSONTyped = EditMemoryChunkRequestToJSONTyped;
|
|
22
|
+
exports.EditMemoryChunkRequestPropertyValidationAttributesMap = {
|
|
23
|
+
body: {
|
|
24
|
+
maxLength: 16384,
|
|
25
|
+
minLength: 1,
|
|
26
|
+
},
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Check if a given object implements the EditMemoryChunkRequest interface.
|
|
30
|
+
*/
|
|
31
|
+
function instanceOfEditMemoryChunkRequest(value) {
|
|
32
|
+
if (!('body' in value) || value['body'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
function EditMemoryChunkRequestFromJSON(json) {
|
|
37
|
+
return EditMemoryChunkRequestFromJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
function EditMemoryChunkRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
40
|
+
if (json == null) {
|
|
41
|
+
return json;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'body': json['body'],
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
function EditMemoryChunkRequestToJSON(json) {
|
|
48
|
+
return EditMemoryChunkRequestToJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
function EditMemoryChunkRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
51
|
+
if (value == null) {
|
|
52
|
+
return value;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'body': value['body'],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
@@ -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,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Knowledge Stack API
|
|
6
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.EventResponsePropertyValidationAttributesMap = void 0;
|
|
17
|
+
exports.instanceOfEventResponse = instanceOfEventResponse;
|
|
18
|
+
exports.EventResponseFromJSON = EventResponseFromJSON;
|
|
19
|
+
exports.EventResponseFromJSONTyped = EventResponseFromJSONTyped;
|
|
20
|
+
exports.EventResponseToJSON = EventResponseToJSON;
|
|
21
|
+
exports.EventResponseToJSONTyped = EventResponseToJSONTyped;
|
|
22
|
+
exports.EventResponsePropertyValidationAttributesMap = {};
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the EventResponse interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfEventResponse(value) {
|
|
27
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('subjectPathPartId' in value) || value['subjectPathPartId'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('kind' in value) || value['kind'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('ts' in value) || value['ts'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('actorUserId' in value) || value['actorUserId'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('payload' in value) || value['payload'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
return true;
|
|
40
|
+
}
|
|
41
|
+
function EventResponseFromJSON(json) {
|
|
42
|
+
return EventResponseFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function EventResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
if (json == null) {
|
|
46
|
+
return json;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'id': json['id'],
|
|
50
|
+
'subjectPathPartId': json['subject_path_part_id'],
|
|
51
|
+
'kind': json['kind'],
|
|
52
|
+
'ts': (new Date(json['ts'])),
|
|
53
|
+
'actorUserId': json['actor_user_id'],
|
|
54
|
+
'payload': json['payload'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
function EventResponseToJSON(json) {
|
|
58
|
+
return EventResponseToJSONTyped(json, false);
|
|
59
|
+
}
|
|
60
|
+
function EventResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
61
|
+
if (value == null) {
|
|
62
|
+
return value;
|
|
63
|
+
}
|
|
64
|
+
return {
|
|
65
|
+
'id': value['id'],
|
|
66
|
+
'subject_path_part_id': value['subjectPathPartId'],
|
|
67
|
+
'kind': value['kind'],
|
|
68
|
+
'ts': value['ts'].toISOString(),
|
|
69
|
+
'actor_user_id': value['actorUserId'],
|
|
70
|
+
'payload': value['payload'],
|
|
71
|
+
};
|
|
72
|
+
}
|
|
@@ -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,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Knowledge Stack API
|
|
6
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.ListMemoryChunksResponsePropertyValidationAttributesMap = void 0;
|
|
17
|
+
exports.instanceOfListMemoryChunksResponse = instanceOfListMemoryChunksResponse;
|
|
18
|
+
exports.ListMemoryChunksResponseFromJSON = ListMemoryChunksResponseFromJSON;
|
|
19
|
+
exports.ListMemoryChunksResponseFromJSONTyped = ListMemoryChunksResponseFromJSONTyped;
|
|
20
|
+
exports.ListMemoryChunksResponseToJSON = ListMemoryChunksResponseToJSON;
|
|
21
|
+
exports.ListMemoryChunksResponseToJSONTyped = ListMemoryChunksResponseToJSONTyped;
|
|
22
|
+
const MemoryChunkResponse_1 = require("./MemoryChunkResponse");
|
|
23
|
+
exports.ListMemoryChunksResponsePropertyValidationAttributesMap = {};
|
|
24
|
+
/**
|
|
25
|
+
* Check if a given object implements the ListMemoryChunksResponse interface.
|
|
26
|
+
*/
|
|
27
|
+
function instanceOfListMemoryChunksResponse(value) {
|
|
28
|
+
if (!('chunks' in value) || value['chunks'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
function ListMemoryChunksResponseFromJSON(json) {
|
|
33
|
+
return ListMemoryChunksResponseFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
function ListMemoryChunksResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'chunks': (json['chunks'].map(MemoryChunkResponse_1.MemoryChunkResponseFromJSON)),
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function ListMemoryChunksResponseToJSON(json) {
|
|
44
|
+
return ListMemoryChunksResponseToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function ListMemoryChunksResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'chunks': (value['chunks'].map(MemoryChunkResponse_1.MemoryChunkResponseToJSON)),
|
|
52
|
+
};
|
|
53
|
+
}
|
|
@@ -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,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Knowledge Stack API
|
|
6
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.MemoryChunkResponsePropertyValidationAttributesMap = void 0;
|
|
17
|
+
exports.instanceOfMemoryChunkResponse = instanceOfMemoryChunkResponse;
|
|
18
|
+
exports.MemoryChunkResponseFromJSON = MemoryChunkResponseFromJSON;
|
|
19
|
+
exports.MemoryChunkResponseFromJSONTyped = MemoryChunkResponseFromJSONTyped;
|
|
20
|
+
exports.MemoryChunkResponseToJSON = MemoryChunkResponseToJSON;
|
|
21
|
+
exports.MemoryChunkResponseToJSONTyped = MemoryChunkResponseToJSONTyped;
|
|
22
|
+
const MemoryKind_1 = require("./MemoryKind");
|
|
23
|
+
exports.MemoryChunkResponsePropertyValidationAttributesMap = {};
|
|
24
|
+
/**
|
|
25
|
+
* Check if a given object implements the MemoryChunkResponse interface.
|
|
26
|
+
*/
|
|
27
|
+
function instanceOfMemoryChunkResponse(value) {
|
|
28
|
+
if (!('chunkId' in value) || value['chunkId'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('kind' in value) || value['kind'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('body' in value) || value['body'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
function MemoryChunkResponseFromJSON(json) {
|
|
37
|
+
return MemoryChunkResponseFromJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
function MemoryChunkResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
40
|
+
if (json == null) {
|
|
41
|
+
return json;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'chunkId': json['chunk_id'],
|
|
45
|
+
'kind': (0, MemoryKind_1.MemoryKindFromJSON)(json['kind']),
|
|
46
|
+
'body': json['body'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function MemoryChunkResponseToJSON(json) {
|
|
50
|
+
return MemoryChunkResponseToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function MemoryChunkResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'chunk_id': value['chunkId'],
|
|
58
|
+
'kind': (0, MemoryKind_1.MemoryKindToJSON)(value['kind']),
|
|
59
|
+
'body': value['body'],
|
|
60
|
+
};
|
|
61
|
+
}
|
|
@@ -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,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Knowledge Stack API
|
|
6
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.MemoryKind = void 0;
|
|
17
|
+
exports.instanceOfMemoryKind = instanceOfMemoryKind;
|
|
18
|
+
exports.MemoryKindFromJSON = MemoryKindFromJSON;
|
|
19
|
+
exports.MemoryKindFromJSONTyped = MemoryKindFromJSONTyped;
|
|
20
|
+
exports.MemoryKindToJSON = MemoryKindToJSON;
|
|
21
|
+
exports.MemoryKindToJSONTyped = MemoryKindToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* Category of a memory chunk inside a MEMORY.md document.
|
|
24
|
+
*
|
|
25
|
+
* Stored inside the chunk's HTML-comment fence as ``kind=<value>``.
|
|
26
|
+
* Not a Postgres enum — memory is file-backed, not table-backed.
|
|
27
|
+
* @export
|
|
28
|
+
*/
|
|
29
|
+
exports.MemoryKind = {
|
|
30
|
+
Correction: 'CORRECTION',
|
|
31
|
+
Preference: 'PREFERENCE',
|
|
32
|
+
Example: 'EXAMPLE'
|
|
33
|
+
};
|
|
34
|
+
function instanceOfMemoryKind(value) {
|
|
35
|
+
for (const key in exports.MemoryKind) {
|
|
36
|
+
if (Object.prototype.hasOwnProperty.call(exports.MemoryKind, key)) {
|
|
37
|
+
if (exports.MemoryKind[key] === value) {
|
|
38
|
+
return true;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
return false;
|
|
43
|
+
}
|
|
44
|
+
function MemoryKindFromJSON(json) {
|
|
45
|
+
return MemoryKindFromJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function MemoryKindFromJSONTyped(json, ignoreDiscriminator) {
|
|
48
|
+
return json;
|
|
49
|
+
}
|
|
50
|
+
function MemoryKindToJSON(value) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
function MemoryKindToJSONTyped(value, ignoreDiscriminator) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
@@ -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,78 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Knowledge Stack API
|
|
6
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.PaginatedResponseEventResponsePropertyValidationAttributesMap = void 0;
|
|
17
|
+
exports.instanceOfPaginatedResponseEventResponse = instanceOfPaginatedResponseEventResponse;
|
|
18
|
+
exports.PaginatedResponseEventResponseFromJSON = PaginatedResponseEventResponseFromJSON;
|
|
19
|
+
exports.PaginatedResponseEventResponseFromJSONTyped = PaginatedResponseEventResponseFromJSONTyped;
|
|
20
|
+
exports.PaginatedResponseEventResponseToJSON = PaginatedResponseEventResponseToJSON;
|
|
21
|
+
exports.PaginatedResponseEventResponseToJSONTyped = PaginatedResponseEventResponseToJSONTyped;
|
|
22
|
+
const EventResponse_1 = require("./EventResponse");
|
|
23
|
+
exports.PaginatedResponseEventResponsePropertyValidationAttributesMap = {
|
|
24
|
+
total: {
|
|
25
|
+
minimum: 0,
|
|
26
|
+
exclusiveMinimum: false,
|
|
27
|
+
},
|
|
28
|
+
limit: {
|
|
29
|
+
minimum: 1,
|
|
30
|
+
exclusiveMinimum: false,
|
|
31
|
+
},
|
|
32
|
+
offset: {
|
|
33
|
+
minimum: 0,
|
|
34
|
+
exclusiveMinimum: false,
|
|
35
|
+
},
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the PaginatedResponseEventResponse interface.
|
|
39
|
+
*/
|
|
40
|
+
function instanceOfPaginatedResponseEventResponse(value) {
|
|
41
|
+
if (!('items' in value) || value['items'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('total' in value) || value['total'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
if (!('limit' in value) || value['limit'] === undefined)
|
|
46
|
+
return false;
|
|
47
|
+
if (!('offset' in value) || value['offset'] === undefined)
|
|
48
|
+
return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
function PaginatedResponseEventResponseFromJSON(json) {
|
|
52
|
+
return PaginatedResponseEventResponseFromJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
function PaginatedResponseEventResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
55
|
+
if (json == null) {
|
|
56
|
+
return json;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'items': (json['items'].map(EventResponse_1.EventResponseFromJSON)),
|
|
60
|
+
'total': json['total'],
|
|
61
|
+
'limit': json['limit'],
|
|
62
|
+
'offset': json['offset'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
function PaginatedResponseEventResponseToJSON(json) {
|
|
66
|
+
return PaginatedResponseEventResponseToJSONTyped(json, false);
|
|
67
|
+
}
|
|
68
|
+
function PaginatedResponseEventResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
69
|
+
if (value == null) {
|
|
70
|
+
return value;
|
|
71
|
+
}
|
|
72
|
+
return {
|
|
73
|
+
'items': (value['items'].map(EventResponse_1.EventResponseToJSON)),
|
|
74
|
+
'total': value['total'],
|
|
75
|
+
'limit': value['limit'],
|
|
76
|
+
'offset': value['offset'],
|
|
77
|
+
};
|
|
78
|
+
}
|
|
@@ -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}
|