@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.
Files changed (93) hide show
  1. package/.openapi-generator/FILES +16 -0
  2. package/README.md +2 -2
  3. package/dist/apis/ChunkLineagesApi.d.ts +117 -0
  4. package/dist/apis/ChunkLineagesApi.js +140 -0
  5. package/dist/apis/ThreadMessagesApi.d.ts +123 -0
  6. package/dist/apis/ThreadMessagesApi.js +147 -0
  7. package/dist/apis/ThreadsApi.d.ts +177 -0
  8. package/dist/apis/ThreadsApi.js +203 -0
  9. package/dist/apis/index.d.ts +3 -0
  10. package/dist/apis/index.js +3 -0
  11. package/dist/esm/apis/ChunkLineagesApi.d.ts +117 -0
  12. package/dist/esm/apis/ChunkLineagesApi.js +136 -0
  13. package/dist/esm/apis/ThreadMessagesApi.d.ts +123 -0
  14. package/dist/esm/apis/ThreadMessagesApi.js +143 -0
  15. package/dist/esm/apis/ThreadsApi.d.ts +177 -0
  16. package/dist/esm/apis/ThreadsApi.js +199 -0
  17. package/dist/esm/apis/index.d.ts +3 -0
  18. package/dist/esm/apis/index.js +3 -0
  19. package/dist/esm/models/ChunkLineageResponse.d.ts +65 -0
  20. package/dist/esm/models/ChunkLineageResponse.js +56 -0
  21. package/dist/esm/models/CreateChunkLineageRequest.d.ts +53 -0
  22. package/dist/esm/models/CreateChunkLineageRequest.js +53 -0
  23. package/dist/esm/models/CreateThreadMessageRequest.d.ts +58 -0
  24. package/dist/esm/models/CreateThreadMessageRequest.js +50 -0
  25. package/dist/esm/models/CreateThreadRequest.d.ts +53 -0
  26. package/dist/esm/models/CreateThreadRequest.js +49 -0
  27. package/dist/esm/models/LineageEdgeResponse.d.ts +53 -0
  28. package/dist/esm/models/LineageEdgeResponse.js +48 -0
  29. package/dist/esm/models/LineageGraphResponse.d.ts +55 -0
  30. package/dist/esm/models/LineageGraphResponse.js +50 -0
  31. package/dist/esm/models/LineageNodeResponse.d.ts +85 -0
  32. package/dist/esm/models/LineageNodeResponse.js +70 -0
  33. package/dist/esm/models/MessageRole.d.ts +26 -0
  34. package/dist/esm/models/MessageRole.js +44 -0
  35. package/dist/esm/models/PaginatedResponseThreadMessageResponse.d.ts +66 -0
  36. package/dist/esm/models/PaginatedResponseThreadMessageResponse.js +70 -0
  37. package/dist/esm/models/PaginatedResponseThreadResponse.d.ts +66 -0
  38. package/dist/esm/models/PaginatedResponseThreadResponse.js +70 -0
  39. package/dist/esm/models/ThreadMessageResponse.d.ts +100 -0
  40. package/dist/esm/models/ThreadMessageResponse.js +78 -0
  41. package/dist/esm/models/ThreadResponse.d.ts +83 -0
  42. package/dist/esm/models/ThreadResponse.js +66 -0
  43. package/dist/esm/models/UpdateThreadRequest.d.ts +53 -0
  44. package/dist/esm/models/UpdateThreadRequest.js +49 -0
  45. package/dist/esm/models/index.d.ts +13 -0
  46. package/dist/esm/models/index.js +13 -0
  47. package/dist/models/ChunkLineageResponse.d.ts +65 -0
  48. package/dist/models/ChunkLineageResponse.js +64 -0
  49. package/dist/models/CreateChunkLineageRequest.d.ts +53 -0
  50. package/dist/models/CreateChunkLineageRequest.js +61 -0
  51. package/dist/models/CreateThreadMessageRequest.d.ts +58 -0
  52. package/dist/models/CreateThreadMessageRequest.js +58 -0
  53. package/dist/models/CreateThreadRequest.d.ts +53 -0
  54. package/dist/models/CreateThreadRequest.js +57 -0
  55. package/dist/models/LineageEdgeResponse.d.ts +53 -0
  56. package/dist/models/LineageEdgeResponse.js +56 -0
  57. package/dist/models/LineageGraphResponse.d.ts +55 -0
  58. package/dist/models/LineageGraphResponse.js +58 -0
  59. package/dist/models/LineageNodeResponse.d.ts +85 -0
  60. package/dist/models/LineageNodeResponse.js +78 -0
  61. package/dist/models/MessageRole.d.ts +26 -0
  62. package/dist/models/MessageRole.js +52 -0
  63. package/dist/models/PaginatedResponseThreadMessageResponse.d.ts +66 -0
  64. package/dist/models/PaginatedResponseThreadMessageResponse.js +78 -0
  65. package/dist/models/PaginatedResponseThreadResponse.d.ts +66 -0
  66. package/dist/models/PaginatedResponseThreadResponse.js +78 -0
  67. package/dist/models/ThreadMessageResponse.d.ts +100 -0
  68. package/dist/models/ThreadMessageResponse.js +86 -0
  69. package/dist/models/ThreadResponse.d.ts +83 -0
  70. package/dist/models/ThreadResponse.js +74 -0
  71. package/dist/models/UpdateThreadRequest.d.ts +53 -0
  72. package/dist/models/UpdateThreadRequest.js +57 -0
  73. package/dist/models/index.d.ts +13 -0
  74. package/dist/models/index.js +13 -0
  75. package/package.json +1 -1
  76. package/src/apis/ChunkLineagesApi.ts +254 -0
  77. package/src/apis/ThreadMessagesApi.ts +271 -0
  78. package/src/apis/ThreadsApi.ts +377 -0
  79. package/src/apis/index.ts +3 -0
  80. package/src/models/ChunkLineageResponse.ts +110 -0
  81. package/src/models/CreateChunkLineageRequest.ts +96 -0
  82. package/src/models/CreateThreadMessageRequest.ts +105 -0
  83. package/src/models/CreateThreadRequest.ts +94 -0
  84. package/src/models/LineageEdgeResponse.ts +92 -0
  85. package/src/models/LineageGraphResponse.ts +107 -0
  86. package/src/models/LineageNodeResponse.ts +154 -0
  87. package/src/models/MessageRole.ts +54 -0
  88. package/src/models/PaginatedResponseThreadMessageResponse.ts +130 -0
  89. package/src/models/PaginatedResponseThreadResponse.ts +130 -0
  90. package/src/models/ThreadMessageResponse.ts +168 -0
  91. package/src/models/ThreadResponse.ts +136 -0
  92. package/src/models/UpdateThreadRequest.ts +94 -0
  93. package/src/models/index.ts +13 -0
@@ -0,0 +1,58 @@
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.CreateThreadMessageRequestAdditionalPropertiesValidationAttributes = exports.CreateThreadMessageRequestPropertyValidationAttributesMap = void 0;
17
+ exports.instanceOfCreateThreadMessageRequest = instanceOfCreateThreadMessageRequest;
18
+ exports.CreateThreadMessageRequestFromJSON = CreateThreadMessageRequestFromJSON;
19
+ exports.CreateThreadMessageRequestFromJSONTyped = CreateThreadMessageRequestFromJSONTyped;
20
+ exports.CreateThreadMessageRequestToJSON = CreateThreadMessageRequestToJSON;
21
+ exports.CreateThreadMessageRequestToJSONTyped = CreateThreadMessageRequestToJSONTyped;
22
+ const MessageRole_1 = require("./MessageRole");
23
+ /**
24
+ * Check if a given object implements the CreateThreadMessageRequest interface.
25
+ */
26
+ function instanceOfCreateThreadMessageRequest(value) {
27
+ if (!('role' in value) || value['role'] === undefined)
28
+ return false;
29
+ if (!('content' in value) || value['content'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ function CreateThreadMessageRequestFromJSON(json) {
34
+ return CreateThreadMessageRequestFromJSONTyped(json, false);
35
+ }
36
+ function CreateThreadMessageRequestFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'role': (0, MessageRole_1.MessageRoleFromJSON)(json['role']),
42
+ 'content': json['content'],
43
+ };
44
+ }
45
+ function CreateThreadMessageRequestToJSON(json) {
46
+ return CreateThreadMessageRequestToJSONTyped(json, false);
47
+ }
48
+ function CreateThreadMessageRequestToJSONTyped(value, ignoreDiscriminator = false) {
49
+ if (value == null) {
50
+ return value;
51
+ }
52
+ return {
53
+ 'role': (0, MessageRole_1.MessageRoleToJSON)(value['role']),
54
+ 'content': value['content'],
55
+ };
56
+ }
57
+ exports.CreateThreadMessageRequestPropertyValidationAttributesMap = {};
58
+ exports.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,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.CreateThreadRequestPropertyValidationAttributesMap = void 0;
17
+ exports.instanceOfCreateThreadRequest = instanceOfCreateThreadRequest;
18
+ exports.CreateThreadRequestFromJSON = CreateThreadRequestFromJSON;
19
+ exports.CreateThreadRequestFromJSONTyped = CreateThreadRequestFromJSONTyped;
20
+ exports.CreateThreadRequestToJSON = CreateThreadRequestToJSON;
21
+ exports.CreateThreadRequestToJSONTyped = CreateThreadRequestToJSONTyped;
22
+ /**
23
+ * Check if a given object implements the CreateThreadRequest interface.
24
+ */
25
+ function instanceOfCreateThreadRequest(value) {
26
+ return true;
27
+ }
28
+ function CreateThreadRequestFromJSON(json) {
29
+ return CreateThreadRequestFromJSONTyped(json, false);
30
+ }
31
+ function CreateThreadRequestFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'parentPathPartId': json['parent_path_part_id'] == null ? undefined : json['parent_path_part_id'],
37
+ 'title': json['title'] == null ? undefined : json['title'],
38
+ };
39
+ }
40
+ function CreateThreadRequestToJSON(json) {
41
+ return CreateThreadRequestToJSONTyped(json, false);
42
+ }
43
+ function CreateThreadRequestToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'parent_path_part_id': value['parentPathPartId'],
49
+ 'title': value['title'],
50
+ };
51
+ }
52
+ exports.CreateThreadRequestPropertyValidationAttributesMap = {
53
+ title: {
54
+ maxLength: 255,
55
+ minLength: 1,
56
+ },
57
+ };
@@ -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,56 @@
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.LineageEdgeResponsePropertyValidationAttributesMap = void 0;
17
+ exports.instanceOfLineageEdgeResponse = instanceOfLineageEdgeResponse;
18
+ exports.LineageEdgeResponseFromJSON = LineageEdgeResponseFromJSON;
19
+ exports.LineageEdgeResponseFromJSONTyped = LineageEdgeResponseFromJSONTyped;
20
+ exports.LineageEdgeResponseToJSON = LineageEdgeResponseToJSON;
21
+ exports.LineageEdgeResponseToJSONTyped = LineageEdgeResponseToJSONTyped;
22
+ /**
23
+ * Check if a given object implements the LineageEdgeResponse interface.
24
+ */
25
+ function instanceOfLineageEdgeResponse(value) {
26
+ if (!('parentChunkId' in value) || value['parentChunkId'] === undefined)
27
+ return false;
28
+ if (!('chunkId' in value) || value['chunkId'] === undefined)
29
+ return false;
30
+ return true;
31
+ }
32
+ function LineageEdgeResponseFromJSON(json) {
33
+ return LineageEdgeResponseFromJSONTyped(json, false);
34
+ }
35
+ function LineageEdgeResponseFromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'parentChunkId': json['parent_chunk_id'],
41
+ 'chunkId': json['chunk_id'],
42
+ };
43
+ }
44
+ function LineageEdgeResponseToJSON(json) {
45
+ return LineageEdgeResponseToJSONTyped(json, false);
46
+ }
47
+ function LineageEdgeResponseToJSONTyped(value, ignoreDiscriminator = false) {
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ 'parent_chunk_id': value['parentChunkId'],
53
+ 'chunk_id': value['chunkId'],
54
+ };
55
+ }
56
+ exports.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,58 @@
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.LineageGraphResponsePropertyValidationAttributesMap = void 0;
17
+ exports.instanceOfLineageGraphResponse = instanceOfLineageGraphResponse;
18
+ exports.LineageGraphResponseFromJSON = LineageGraphResponseFromJSON;
19
+ exports.LineageGraphResponseFromJSONTyped = LineageGraphResponseFromJSONTyped;
20
+ exports.LineageGraphResponseToJSON = LineageGraphResponseToJSON;
21
+ exports.LineageGraphResponseToJSONTyped = LineageGraphResponseToJSONTyped;
22
+ const LineageEdgeResponse_1 = require("./LineageEdgeResponse");
23
+ const LineageNodeResponse_1 = require("./LineageNodeResponse");
24
+ /**
25
+ * Check if a given object implements the LineageGraphResponse interface.
26
+ */
27
+ function instanceOfLineageGraphResponse(value) {
28
+ if (!('nodes' in value) || value['nodes'] === undefined)
29
+ return false;
30
+ if (!('edges' in value) || value['edges'] === undefined)
31
+ return false;
32
+ return true;
33
+ }
34
+ function LineageGraphResponseFromJSON(json) {
35
+ return LineageGraphResponseFromJSONTyped(json, false);
36
+ }
37
+ function LineageGraphResponseFromJSONTyped(json, ignoreDiscriminator) {
38
+ if (json == null) {
39
+ return json;
40
+ }
41
+ return {
42
+ 'nodes': (json['nodes'].map(LineageNodeResponse_1.LineageNodeResponseFromJSON)),
43
+ 'edges': (json['edges'].map(LineageEdgeResponse_1.LineageEdgeResponseFromJSON)),
44
+ };
45
+ }
46
+ function LineageGraphResponseToJSON(json) {
47
+ return LineageGraphResponseToJSONTyped(json, false);
48
+ }
49
+ function LineageGraphResponseToJSONTyped(value, ignoreDiscriminator = false) {
50
+ if (value == null) {
51
+ return value;
52
+ }
53
+ return {
54
+ 'nodes': (value['nodes'].map(LineageNodeResponse_1.LineageNodeResponseToJSON)),
55
+ 'edges': (value['edges'].map(LineageEdgeResponse_1.LineageEdgeResponseToJSON)),
56
+ };
57
+ }
58
+ exports.LineageGraphResponsePropertyValidationAttributesMap = {};
@@ -0,0 +1,85 @@
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 { ChunkMetadataOutput } from './ChunkMetadataOutput';
13
+ import type { ChunkType } from './ChunkType';
14
+ /**
15
+ * A node in the lineage graph (enriched chunk).
16
+ * @export
17
+ * @interface LineageNodeResponse
18
+ */
19
+ export interface LineageNodeResponse {
20
+ /**
21
+ * Chunk ID
22
+ * @type {string}
23
+ * @memberof LineageNodeResponse
24
+ */
25
+ id: string;
26
+ /**
27
+ * Chunk text content
28
+ * @type {string}
29
+ * @memberof LineageNodeResponse
30
+ */
31
+ content: string;
32
+ /**
33
+ * Type of chunk content
34
+ * @type {ChunkType}
35
+ * @memberof LineageNodeResponse
36
+ */
37
+ chunkType: ChunkType;
38
+ /**
39
+ * Chunk metadata
40
+ * @type {ChunkMetadataOutput}
41
+ * @memberof LineageNodeResponse
42
+ */
43
+ chunkMetadata: ChunkMetadataOutput;
44
+ /**
45
+ * Tenant ID
46
+ * @type {string}
47
+ * @memberof LineageNodeResponse
48
+ */
49
+ tenantId: string;
50
+ /**
51
+ * Creation timestamp
52
+ * @type {Date}
53
+ * @memberof LineageNodeResponse
54
+ */
55
+ createdAt: Date;
56
+ /**
57
+ * Last update timestamp
58
+ * @type {Date}
59
+ * @memberof LineageNodeResponse
60
+ */
61
+ updatedAt: Date;
62
+ }
63
+ /**
64
+ * Check if a given object implements the LineageNodeResponse interface.
65
+ */
66
+ export declare function instanceOfLineageNodeResponse(value: object): value is LineageNodeResponse;
67
+ export declare function LineageNodeResponseFromJSON(json: any): LineageNodeResponse;
68
+ export declare function LineageNodeResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): LineageNodeResponse;
69
+ export declare function LineageNodeResponseToJSON(json: any): LineageNodeResponse;
70
+ export declare function LineageNodeResponseToJSONTyped(value?: LineageNodeResponse | null, ignoreDiscriminator?: boolean): any;
71
+ export declare const LineageNodeResponsePropertyValidationAttributesMap: {
72
+ [property: string]: {
73
+ maxLength?: number;
74
+ minLength?: number;
75
+ pattern?: string;
76
+ maximum?: number;
77
+ exclusiveMaximum?: boolean;
78
+ minimum?: number;
79
+ exclusiveMinimum?: boolean;
80
+ multipleOf?: number;
81
+ maxItems?: number;
82
+ minItems?: number;
83
+ uniqueItems?: boolean;
84
+ };
85
+ };
@@ -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.LineageNodeResponsePropertyValidationAttributesMap = void 0;
17
+ exports.instanceOfLineageNodeResponse = instanceOfLineageNodeResponse;
18
+ exports.LineageNodeResponseFromJSON = LineageNodeResponseFromJSON;
19
+ exports.LineageNodeResponseFromJSONTyped = LineageNodeResponseFromJSONTyped;
20
+ exports.LineageNodeResponseToJSON = LineageNodeResponseToJSON;
21
+ exports.LineageNodeResponseToJSONTyped = LineageNodeResponseToJSONTyped;
22
+ const ChunkMetadataOutput_1 = require("./ChunkMetadataOutput");
23
+ const ChunkType_1 = require("./ChunkType");
24
+ /**
25
+ * Check if a given object implements the LineageNodeResponse interface.
26
+ */
27
+ function instanceOfLineageNodeResponse(value) {
28
+ if (!('id' in value) || value['id'] === undefined)
29
+ return false;
30
+ if (!('content' in value) || value['content'] === undefined)
31
+ return false;
32
+ if (!('chunkType' in value) || value['chunkType'] === undefined)
33
+ return false;
34
+ if (!('chunkMetadata' in value) || value['chunkMetadata'] === undefined)
35
+ return false;
36
+ if (!('tenantId' in value) || value['tenantId'] === undefined)
37
+ return false;
38
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
39
+ return false;
40
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined)
41
+ return false;
42
+ return true;
43
+ }
44
+ function LineageNodeResponseFromJSON(json) {
45
+ return LineageNodeResponseFromJSONTyped(json, false);
46
+ }
47
+ function LineageNodeResponseFromJSONTyped(json, ignoreDiscriminator) {
48
+ if (json == null) {
49
+ return json;
50
+ }
51
+ return {
52
+ 'id': json['id'],
53
+ 'content': json['content'],
54
+ 'chunkType': (0, ChunkType_1.ChunkTypeFromJSON)(json['chunk_type']),
55
+ 'chunkMetadata': (0, ChunkMetadataOutput_1.ChunkMetadataOutputFromJSON)(json['chunk_metadata']),
56
+ 'tenantId': json['tenant_id'],
57
+ 'createdAt': (new Date(json['created_at'])),
58
+ 'updatedAt': (new Date(json['updated_at'])),
59
+ };
60
+ }
61
+ function LineageNodeResponseToJSON(json) {
62
+ return LineageNodeResponseToJSONTyped(json, false);
63
+ }
64
+ function LineageNodeResponseToJSONTyped(value, ignoreDiscriminator = false) {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+ return {
69
+ 'id': value['id'],
70
+ 'content': value['content'],
71
+ 'chunk_type': (0, ChunkType_1.ChunkTypeToJSON)(value['chunkType']),
72
+ 'chunk_metadata': (0, ChunkMetadataOutput_1.ChunkMetadataOutputToJSON)(value['chunkMetadata']),
73
+ 'tenant_id': value['tenantId'],
74
+ 'created_at': value['createdAt'].toISOString(),
75
+ 'updated_at': value['updatedAt'].toISOString(),
76
+ };
77
+ }
78
+ exports.LineageNodeResponsePropertyValidationAttributesMap = {};
@@ -0,0 +1,26 @@
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
+ * Role of message author in thread.
14
+ * @export
15
+ */
16
+ export declare const MessageRole: {
17
+ readonly User: "USER";
18
+ readonly Assistant: "ASSISTANT";
19
+ readonly System: "SYSTEM";
20
+ };
21
+ export type MessageRole = typeof MessageRole[keyof typeof MessageRole];
22
+ export declare function instanceOfMessageRole(value: any): boolean;
23
+ export declare function MessageRoleFromJSON(json: any): MessageRole;
24
+ export declare function MessageRoleFromJSONTyped(json: any, ignoreDiscriminator: boolean): MessageRole;
25
+ export declare function MessageRoleToJSON(value?: MessageRole | null): any;
26
+ export declare function MessageRoleToJSONTyped(value: any, ignoreDiscriminator: boolean): MessageRole;
@@ -0,0 +1,52 @@
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.MessageRole = void 0;
17
+ exports.instanceOfMessageRole = instanceOfMessageRole;
18
+ exports.MessageRoleFromJSON = MessageRoleFromJSON;
19
+ exports.MessageRoleFromJSONTyped = MessageRoleFromJSONTyped;
20
+ exports.MessageRoleToJSON = MessageRoleToJSON;
21
+ exports.MessageRoleToJSONTyped = MessageRoleToJSONTyped;
22
+ /**
23
+ * Role of message author in thread.
24
+ * @export
25
+ */
26
+ exports.MessageRole = {
27
+ User: 'USER',
28
+ Assistant: 'ASSISTANT',
29
+ System: 'SYSTEM'
30
+ };
31
+ function instanceOfMessageRole(value) {
32
+ for (const key in exports.MessageRole) {
33
+ if (Object.prototype.hasOwnProperty.call(exports.MessageRole, key)) {
34
+ if (exports.MessageRole[key] === value) {
35
+ return true;
36
+ }
37
+ }
38
+ }
39
+ return false;
40
+ }
41
+ function MessageRoleFromJSON(json) {
42
+ return MessageRoleFromJSONTyped(json, false);
43
+ }
44
+ function MessageRoleFromJSONTyped(json, ignoreDiscriminator) {
45
+ return json;
46
+ }
47
+ function MessageRoleToJSON(value) {
48
+ return value;
49
+ }
50
+ function MessageRoleToJSONTyped(value, ignoreDiscriminator) {
51
+ return value;
52
+ }