@knowledge-stack/ksapi 1.9.0 → 1.11.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 +16 -0
- package/README.md +2 -2
- package/dist/apis/ChunkLineagesApi.d.ts +117 -0
- package/dist/apis/ChunkLineagesApi.js +140 -0
- package/dist/apis/ThreadMessagesApi.d.ts +123 -0
- package/dist/apis/ThreadMessagesApi.js +147 -0
- package/dist/apis/ThreadsApi.d.ts +177 -0
- package/dist/apis/ThreadsApi.js +203 -0
- package/dist/apis/index.d.ts +3 -0
- package/dist/apis/index.js +3 -0
- package/dist/esm/apis/ChunkLineagesApi.d.ts +117 -0
- package/dist/esm/apis/ChunkLineagesApi.js +136 -0
- package/dist/esm/apis/ThreadMessagesApi.d.ts +123 -0
- package/dist/esm/apis/ThreadMessagesApi.js +143 -0
- package/dist/esm/apis/ThreadsApi.d.ts +177 -0
- package/dist/esm/apis/ThreadsApi.js +199 -0
- package/dist/esm/apis/index.d.ts +3 -0
- package/dist/esm/apis/index.js +3 -0
- package/dist/esm/models/ChunkLineageResponse.d.ts +65 -0
- package/dist/esm/models/ChunkLineageResponse.js +56 -0
- package/dist/esm/models/CreateChunkLineageRequest.d.ts +53 -0
- package/dist/esm/models/CreateChunkLineageRequest.js +53 -0
- package/dist/esm/models/CreateThreadMessageRequest.d.ts +58 -0
- package/dist/esm/models/CreateThreadMessageRequest.js +50 -0
- package/dist/esm/models/CreateThreadRequest.d.ts +53 -0
- package/dist/esm/models/CreateThreadRequest.js +49 -0
- package/dist/esm/models/LineageEdgeResponse.d.ts +53 -0
- package/dist/esm/models/LineageEdgeResponse.js +48 -0
- package/dist/esm/models/LineageGraphResponse.d.ts +55 -0
- package/dist/esm/models/LineageGraphResponse.js +50 -0
- package/dist/esm/models/LineageNodeResponse.d.ts +85 -0
- package/dist/esm/models/LineageNodeResponse.js +70 -0
- package/dist/esm/models/MessageRole.d.ts +26 -0
- package/dist/esm/models/MessageRole.js +44 -0
- package/dist/esm/models/PaginatedResponseThreadMessageResponse.d.ts +66 -0
- package/dist/esm/models/PaginatedResponseThreadMessageResponse.js +70 -0
- package/dist/esm/models/PaginatedResponseThreadResponse.d.ts +66 -0
- package/dist/esm/models/PaginatedResponseThreadResponse.js +70 -0
- package/dist/esm/models/ThreadMessageResponse.d.ts +100 -0
- package/dist/esm/models/ThreadMessageResponse.js +78 -0
- package/dist/esm/models/ThreadResponse.d.ts +83 -0
- package/dist/esm/models/ThreadResponse.js +66 -0
- package/dist/esm/models/UpdateThreadRequest.d.ts +53 -0
- package/dist/esm/models/UpdateThreadRequest.js +49 -0
- package/dist/esm/models/index.d.ts +13 -0
- package/dist/esm/models/index.js +13 -0
- package/dist/models/ChunkLineageResponse.d.ts +65 -0
- package/dist/models/ChunkLineageResponse.js +64 -0
- package/dist/models/CreateChunkLineageRequest.d.ts +53 -0
- package/dist/models/CreateChunkLineageRequest.js +61 -0
- package/dist/models/CreateThreadMessageRequest.d.ts +58 -0
- package/dist/models/CreateThreadMessageRequest.js +58 -0
- package/dist/models/CreateThreadRequest.d.ts +53 -0
- package/dist/models/CreateThreadRequest.js +57 -0
- package/dist/models/LineageEdgeResponse.d.ts +53 -0
- package/dist/models/LineageEdgeResponse.js +56 -0
- package/dist/models/LineageGraphResponse.d.ts +55 -0
- package/dist/models/LineageGraphResponse.js +58 -0
- package/dist/models/LineageNodeResponse.d.ts +85 -0
- package/dist/models/LineageNodeResponse.js +78 -0
- package/dist/models/MessageRole.d.ts +26 -0
- package/dist/models/MessageRole.js +52 -0
- package/dist/models/PaginatedResponseThreadMessageResponse.d.ts +66 -0
- package/dist/models/PaginatedResponseThreadMessageResponse.js +78 -0
- package/dist/models/PaginatedResponseThreadResponse.d.ts +66 -0
- package/dist/models/PaginatedResponseThreadResponse.js +78 -0
- package/dist/models/ThreadMessageResponse.d.ts +100 -0
- package/dist/models/ThreadMessageResponse.js +86 -0
- package/dist/models/ThreadResponse.d.ts +83 -0
- package/dist/models/ThreadResponse.js +74 -0
- package/dist/models/UpdateThreadRequest.d.ts +53 -0
- package/dist/models/UpdateThreadRequest.js +57 -0
- package/dist/models/index.d.ts +13 -0
- package/dist/models/index.js +13 -0
- package/package.json +1 -1
- package/src/apis/ChunkLineagesApi.ts +254 -0
- package/src/apis/ThreadMessagesApi.ts +271 -0
- package/src/apis/ThreadsApi.ts +377 -0
- package/src/apis/index.ts +3 -0
- package/src/models/ChunkLineageResponse.ts +110 -0
- package/src/models/CreateChunkLineageRequest.ts +96 -0
- package/src/models/CreateThreadMessageRequest.ts +105 -0
- package/src/models/CreateThreadRequest.ts +94 -0
- package/src/models/LineageEdgeResponse.ts +92 -0
- package/src/models/LineageGraphResponse.ts +107 -0
- package/src/models/LineageNodeResponse.ts +154 -0
- package/src/models/MessageRole.ts +54 -0
- package/src/models/PaginatedResponseThreadMessageResponse.ts +130 -0
- package/src/models/PaginatedResponseThreadResponse.ts +130 -0
- package/src/models/ThreadMessageResponse.ts +168 -0
- package/src/models/ThreadResponse.ts +136 -0
- package/src/models/UpdateThreadRequest.ts +94 -0
- package/src/models/index.ts +13 -0
|
@@ -0,0 +1,65 @@
|
|
|
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
|
+
* Single chunk lineage edge response.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ChunkLineageResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface ChunkLineageResponse {
|
|
18
|
+
/**
|
|
19
|
+
* Parent chunk ID
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ChunkLineageResponse
|
|
22
|
+
*/
|
|
23
|
+
parentChunkId: string;
|
|
24
|
+
/**
|
|
25
|
+
* Child chunk ID
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ChunkLineageResponse
|
|
28
|
+
*/
|
|
29
|
+
chunkId: string;
|
|
30
|
+
/**
|
|
31
|
+
* Tenant ID
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ChunkLineageResponse
|
|
34
|
+
*/
|
|
35
|
+
tenantId: string;
|
|
36
|
+
/**
|
|
37
|
+
* Creation timestamp
|
|
38
|
+
* @type {Date}
|
|
39
|
+
* @memberof ChunkLineageResponse
|
|
40
|
+
*/
|
|
41
|
+
createdAt: Date;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the ChunkLineageResponse interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfChunkLineageResponse(value: object): value is ChunkLineageResponse;
|
|
47
|
+
export declare function ChunkLineageResponseFromJSON(json: any): ChunkLineageResponse;
|
|
48
|
+
export declare function ChunkLineageResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChunkLineageResponse;
|
|
49
|
+
export declare function ChunkLineageResponseToJSON(json: any): ChunkLineageResponse;
|
|
50
|
+
export declare function ChunkLineageResponseToJSONTyped(value?: ChunkLineageResponse | null, ignoreDiscriminator?: boolean): any;
|
|
51
|
+
export declare const ChunkLineageResponsePropertyValidationAttributesMap: {
|
|
52
|
+
[property: string]: {
|
|
53
|
+
maxLength?: number;
|
|
54
|
+
minLength?: number;
|
|
55
|
+
pattern?: string;
|
|
56
|
+
maximum?: number;
|
|
57
|
+
exclusiveMaximum?: boolean;
|
|
58
|
+
minimum?: number;
|
|
59
|
+
exclusiveMinimum?: boolean;
|
|
60
|
+
multipleOf?: number;
|
|
61
|
+
maxItems?: number;
|
|
62
|
+
minItems?: number;
|
|
63
|
+
uniqueItems?: boolean;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
@@ -0,0 +1,56 @@
|
|
|
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
|
+
* Check if a given object implements the ChunkLineageResponse interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfChunkLineageResponse(value) {
|
|
18
|
+
if (!('parentChunkId' in value) || value['parentChunkId'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('chunkId' in value) || value['chunkId'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('tenantId' in value) || value['tenantId'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
export function ChunkLineageResponseFromJSON(json) {
|
|
29
|
+
return ChunkLineageResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
export function ChunkLineageResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'parentChunkId': json['parent_chunk_id'],
|
|
37
|
+
'chunkId': json['chunk_id'],
|
|
38
|
+
'tenantId': json['tenant_id'],
|
|
39
|
+
'createdAt': (new Date(json['created_at'])),
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
export function ChunkLineageResponseToJSON(json) {
|
|
43
|
+
return ChunkLineageResponseToJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
export function ChunkLineageResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'parent_chunk_id': value['parentChunkId'],
|
|
51
|
+
'chunk_id': value['chunkId'],
|
|
52
|
+
'tenant_id': value['tenantId'],
|
|
53
|
+
'created_at': value['createdAt'].toISOString(),
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
export const ChunkLineageResponsePropertyValidationAttributesMap = {};
|
|
@@ -0,0 +1,53 @@
|
|
|
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
|
+
* Request to batch-create lineage edges for a child chunk.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface CreateChunkLineageRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface CreateChunkLineageRequest {
|
|
18
|
+
/**
|
|
19
|
+
* Child chunk ID
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CreateChunkLineageRequest
|
|
22
|
+
*/
|
|
23
|
+
chunkId: string;
|
|
24
|
+
/**
|
|
25
|
+
* List of parent chunk IDs
|
|
26
|
+
* @type {Array<string>}
|
|
27
|
+
* @memberof CreateChunkLineageRequest
|
|
28
|
+
*/
|
|
29
|
+
parentChunkIds: Array<string>;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the CreateChunkLineageRequest interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfCreateChunkLineageRequest(value: object): value is CreateChunkLineageRequest;
|
|
35
|
+
export declare function CreateChunkLineageRequestFromJSON(json: any): CreateChunkLineageRequest;
|
|
36
|
+
export declare function CreateChunkLineageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateChunkLineageRequest;
|
|
37
|
+
export declare function CreateChunkLineageRequestToJSON(json: any): CreateChunkLineageRequest;
|
|
38
|
+
export declare function CreateChunkLineageRequestToJSONTyped(value?: CreateChunkLineageRequest | null, ignoreDiscriminator?: boolean): any;
|
|
39
|
+
export declare const CreateChunkLineageRequestPropertyValidationAttributesMap: {
|
|
40
|
+
[property: string]: {
|
|
41
|
+
maxLength?: number;
|
|
42
|
+
minLength?: number;
|
|
43
|
+
pattern?: string;
|
|
44
|
+
maximum?: number;
|
|
45
|
+
exclusiveMaximum?: boolean;
|
|
46
|
+
minimum?: number;
|
|
47
|
+
exclusiveMinimum?: boolean;
|
|
48
|
+
multipleOf?: number;
|
|
49
|
+
maxItems?: number;
|
|
50
|
+
minItems?: number;
|
|
51
|
+
uniqueItems?: boolean;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
@@ -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
|
+
/**
|
|
15
|
+
* Check if a given object implements the CreateChunkLineageRequest interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfCreateChunkLineageRequest(value) {
|
|
18
|
+
if (!('chunkId' in value) || value['chunkId'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('parentChunkIds' in value) || value['parentChunkIds'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
export function CreateChunkLineageRequestFromJSON(json) {
|
|
25
|
+
return CreateChunkLineageRequestFromJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
export function CreateChunkLineageRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
if (json == null) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
'chunkId': json['chunk_id'],
|
|
33
|
+
'parentChunkIds': json['parent_chunk_ids'],
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export function CreateChunkLineageRequestToJSON(json) {
|
|
37
|
+
return CreateChunkLineageRequestToJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
export function CreateChunkLineageRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'chunk_id': value['chunkId'],
|
|
45
|
+
'parent_chunk_ids': value['parentChunkIds'],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
export const CreateChunkLineageRequestPropertyValidationAttributesMap = {
|
|
49
|
+
parentChunkIds: {
|
|
50
|
+
minItems: 1,
|
|
51
|
+
uniqueItems: false,
|
|
52
|
+
},
|
|
53
|
+
};
|
|
@@ -0,0 +1,58 @@
|
|
|
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 { MessageRole } from './MessageRole';
|
|
13
|
+
/**
|
|
14
|
+
* Request to create a new thread message.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface CreateThreadMessageRequest
|
|
17
|
+
*/
|
|
18
|
+
export interface CreateThreadMessageRequest {
|
|
19
|
+
/**
|
|
20
|
+
* Role of the message author (USER, ASSISTANT, SYSTEM)
|
|
21
|
+
* @type {MessageRole}
|
|
22
|
+
* @memberof CreateThreadMessageRequest
|
|
23
|
+
*/
|
|
24
|
+
role: MessageRole;
|
|
25
|
+
/**
|
|
26
|
+
* Structured message content (JSONB)
|
|
27
|
+
* @type {object}
|
|
28
|
+
* @memberof CreateThreadMessageRequest
|
|
29
|
+
*/
|
|
30
|
+
content: object;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the CreateThreadMessageRequest interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfCreateThreadMessageRequest(value: object): value is CreateThreadMessageRequest;
|
|
36
|
+
export declare function CreateThreadMessageRequestFromJSON(json: any): CreateThreadMessageRequest;
|
|
37
|
+
export declare function CreateThreadMessageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateThreadMessageRequest;
|
|
38
|
+
export declare function CreateThreadMessageRequestToJSON(json: any): CreateThreadMessageRequest;
|
|
39
|
+
export declare function CreateThreadMessageRequestToJSONTyped(value?: CreateThreadMessageRequest | null, ignoreDiscriminator?: boolean): any;
|
|
40
|
+
export declare const CreateThreadMessageRequestPropertyValidationAttributesMap: {
|
|
41
|
+
[property: string]: {
|
|
42
|
+
maxLength?: number;
|
|
43
|
+
minLength?: number;
|
|
44
|
+
pattern?: string;
|
|
45
|
+
maximum?: number;
|
|
46
|
+
exclusiveMaximum?: boolean;
|
|
47
|
+
minimum?: number;
|
|
48
|
+
exclusiveMinimum?: boolean;
|
|
49
|
+
multipleOf?: number;
|
|
50
|
+
maxItems?: number;
|
|
51
|
+
minItems?: number;
|
|
52
|
+
uniqueItems?: boolean;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
export declare const CreateThreadMessageRequestAdditionalPropertiesValidationAttributes: {
|
|
56
|
+
maxProperties?: number;
|
|
57
|
+
minProperties?: number;
|
|
58
|
+
};
|
|
@@ -0,0 +1,50 @@
|
|
|
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 { MessageRoleFromJSON, MessageRoleToJSON, } from './MessageRole';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the CreateThreadMessageRequest interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfCreateThreadMessageRequest(value) {
|
|
19
|
+
if (!('role' in value) || value['role'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('content' in value) || value['content'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
export function CreateThreadMessageRequestFromJSON(json) {
|
|
26
|
+
return CreateThreadMessageRequestFromJSONTyped(json, false);
|
|
27
|
+
}
|
|
28
|
+
export function CreateThreadMessageRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
+
if (json == null) {
|
|
30
|
+
return json;
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
'role': MessageRoleFromJSON(json['role']),
|
|
34
|
+
'content': json['content'],
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
export function CreateThreadMessageRequestToJSON(json) {
|
|
38
|
+
return CreateThreadMessageRequestToJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
export function CreateThreadMessageRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
41
|
+
if (value == null) {
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'role': MessageRoleToJSON(value['role']),
|
|
46
|
+
'content': value['content'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
export const CreateThreadMessageRequestPropertyValidationAttributesMap = {};
|
|
50
|
+
export const CreateThreadMessageRequestAdditionalPropertiesValidationAttributes = {};
|
|
@@ -0,0 +1,53 @@
|
|
|
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
|
+
* Request to create a new thread.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface CreateThreadRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface CreateThreadRequest {
|
|
18
|
+
/**
|
|
19
|
+
* Parent PathPart ID. When omitted, auto-provisions and uses the user's /users/{user_id}/threads/ folder.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CreateThreadRequest
|
|
22
|
+
*/
|
|
23
|
+
parentPathPartId?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Thread title
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof CreateThreadRequest
|
|
28
|
+
*/
|
|
29
|
+
title?: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the CreateThreadRequest interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfCreateThreadRequest(value: object): value is CreateThreadRequest;
|
|
35
|
+
export declare function CreateThreadRequestFromJSON(json: any): CreateThreadRequest;
|
|
36
|
+
export declare function CreateThreadRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateThreadRequest;
|
|
37
|
+
export declare function CreateThreadRequestToJSON(json: any): CreateThreadRequest;
|
|
38
|
+
export declare function CreateThreadRequestToJSONTyped(value?: CreateThreadRequest | null, ignoreDiscriminator?: boolean): any;
|
|
39
|
+
export declare const CreateThreadRequestPropertyValidationAttributesMap: {
|
|
40
|
+
[property: string]: {
|
|
41
|
+
maxLength?: number;
|
|
42
|
+
minLength?: number;
|
|
43
|
+
pattern?: string;
|
|
44
|
+
maximum?: number;
|
|
45
|
+
exclusiveMaximum?: boolean;
|
|
46
|
+
minimum?: number;
|
|
47
|
+
exclusiveMinimum?: boolean;
|
|
48
|
+
multipleOf?: number;
|
|
49
|
+
maxItems?: number;
|
|
50
|
+
minItems?: number;
|
|
51
|
+
uniqueItems?: boolean;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
@@ -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
|
+
/**
|
|
15
|
+
* Check if a given object implements the CreateThreadRequest interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfCreateThreadRequest(value) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
export function CreateThreadRequestFromJSON(json) {
|
|
21
|
+
return CreateThreadRequestFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
export function CreateThreadRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'parentPathPartId': json['parent_path_part_id'] == null ? undefined : json['parent_path_part_id'],
|
|
29
|
+
'title': json['title'] == null ? undefined : json['title'],
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
export function CreateThreadRequestToJSON(json) {
|
|
33
|
+
return CreateThreadRequestToJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
export function CreateThreadRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
36
|
+
if (value == null) {
|
|
37
|
+
return value;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'parent_path_part_id': value['parentPathPartId'],
|
|
41
|
+
'title': value['title'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
export const CreateThreadRequestPropertyValidationAttributesMap = {
|
|
45
|
+
title: {
|
|
46
|
+
maxLength: 255,
|
|
47
|
+
minLength: 1,
|
|
48
|
+
},
|
|
49
|
+
};
|
|
@@ -0,0 +1,53 @@
|
|
|
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
|
+
* An edge in the lineage graph.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface LineageEdgeResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface LineageEdgeResponse {
|
|
18
|
+
/**
|
|
19
|
+
* Parent chunk ID (source)
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof LineageEdgeResponse
|
|
22
|
+
*/
|
|
23
|
+
parentChunkId: string;
|
|
24
|
+
/**
|
|
25
|
+
* Child chunk ID (derived)
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof LineageEdgeResponse
|
|
28
|
+
*/
|
|
29
|
+
chunkId: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the LineageEdgeResponse interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfLineageEdgeResponse(value: object): value is LineageEdgeResponse;
|
|
35
|
+
export declare function LineageEdgeResponseFromJSON(json: any): LineageEdgeResponse;
|
|
36
|
+
export declare function LineageEdgeResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): LineageEdgeResponse;
|
|
37
|
+
export declare function LineageEdgeResponseToJSON(json: any): LineageEdgeResponse;
|
|
38
|
+
export declare function LineageEdgeResponseToJSONTyped(value?: LineageEdgeResponse | null, ignoreDiscriminator?: boolean): any;
|
|
39
|
+
export declare const LineageEdgeResponsePropertyValidationAttributesMap: {
|
|
40
|
+
[property: string]: {
|
|
41
|
+
maxLength?: number;
|
|
42
|
+
minLength?: number;
|
|
43
|
+
pattern?: string;
|
|
44
|
+
maximum?: number;
|
|
45
|
+
exclusiveMaximum?: boolean;
|
|
46
|
+
minimum?: number;
|
|
47
|
+
exclusiveMinimum?: boolean;
|
|
48
|
+
multipleOf?: number;
|
|
49
|
+
maxItems?: number;
|
|
50
|
+
minItems?: number;
|
|
51
|
+
uniqueItems?: boolean;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Knowledge Stack API
|
|
5
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the LineageEdgeResponse interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfLineageEdgeResponse(value) {
|
|
18
|
+
if (!('parentChunkId' in value) || value['parentChunkId'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('chunkId' in value) || value['chunkId'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
export function LineageEdgeResponseFromJSON(json) {
|
|
25
|
+
return LineageEdgeResponseFromJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
export function LineageEdgeResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
if (json == null) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
'parentChunkId': json['parent_chunk_id'],
|
|
33
|
+
'chunkId': json['chunk_id'],
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export function LineageEdgeResponseToJSON(json) {
|
|
37
|
+
return LineageEdgeResponseToJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
export function LineageEdgeResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'parent_chunk_id': value['parentChunkId'],
|
|
45
|
+
'chunk_id': value['chunkId'],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
export const LineageEdgeResponsePropertyValidationAttributesMap = {};
|
|
@@ -0,0 +1,55 @@
|
|
|
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 { LineageEdgeResponse } from './LineageEdgeResponse';
|
|
13
|
+
import type { LineageNodeResponse } from './LineageNodeResponse';
|
|
14
|
+
/**
|
|
15
|
+
* Complete lineage graph with nodes and edges.
|
|
16
|
+
* @export
|
|
17
|
+
* @interface LineageGraphResponse
|
|
18
|
+
*/
|
|
19
|
+
export interface LineageGraphResponse {
|
|
20
|
+
/**
|
|
21
|
+
* Chunk nodes in the graph
|
|
22
|
+
* @type {Array<LineageNodeResponse>}
|
|
23
|
+
* @memberof LineageGraphResponse
|
|
24
|
+
*/
|
|
25
|
+
nodes: Array<LineageNodeResponse>;
|
|
26
|
+
/**
|
|
27
|
+
* Lineage edges in the graph
|
|
28
|
+
* @type {Array<LineageEdgeResponse>}
|
|
29
|
+
* @memberof LineageGraphResponse
|
|
30
|
+
*/
|
|
31
|
+
edges: Array<LineageEdgeResponse>;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the LineageGraphResponse interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfLineageGraphResponse(value: object): value is LineageGraphResponse;
|
|
37
|
+
export declare function LineageGraphResponseFromJSON(json: any): LineageGraphResponse;
|
|
38
|
+
export declare function LineageGraphResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): LineageGraphResponse;
|
|
39
|
+
export declare function LineageGraphResponseToJSON(json: any): LineageGraphResponse;
|
|
40
|
+
export declare function LineageGraphResponseToJSONTyped(value?: LineageGraphResponse | null, ignoreDiscriminator?: boolean): any;
|
|
41
|
+
export declare const LineageGraphResponsePropertyValidationAttributesMap: {
|
|
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
|
+
};
|
|
@@ -0,0 +1,50 @@
|
|
|
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 { LineageEdgeResponseFromJSON, LineageEdgeResponseToJSON, } from './LineageEdgeResponse';
|
|
15
|
+
import { LineageNodeResponseFromJSON, LineageNodeResponseToJSON, } from './LineageNodeResponse';
|
|
16
|
+
/**
|
|
17
|
+
* Check if a given object implements the LineageGraphResponse interface.
|
|
18
|
+
*/
|
|
19
|
+
export function instanceOfLineageGraphResponse(value) {
|
|
20
|
+
if (!('nodes' in value) || value['nodes'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('edges' in value) || value['edges'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
export function LineageGraphResponseFromJSON(json) {
|
|
27
|
+
return LineageGraphResponseFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
export function LineageGraphResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
if (json == null) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'nodes': (json['nodes'].map(LineageNodeResponseFromJSON)),
|
|
35
|
+
'edges': (json['edges'].map(LineageEdgeResponseFromJSON)),
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
export function LineageGraphResponseToJSON(json) {
|
|
39
|
+
return LineageGraphResponseToJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
export function LineageGraphResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
42
|
+
if (value == null) {
|
|
43
|
+
return value;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'nodes': (value['nodes'].map(LineageNodeResponseToJSON)),
|
|
47
|
+
'edges': (value['edges'].map(LineageEdgeResponseToJSON)),
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
export const LineageGraphResponsePropertyValidationAttributesMap = {};
|