@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,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
+ * Thread response model.
14
+ * @export
15
+ * @interface ThreadResponse
16
+ */
17
+ export interface ThreadResponse {
18
+ /**
19
+ * Thread ID
20
+ * @type {string}
21
+ * @memberof ThreadResponse
22
+ */
23
+ id: string;
24
+ /**
25
+ * PathPart ID
26
+ * @type {string}
27
+ * @memberof ThreadResponse
28
+ */
29
+ pathPartId: string;
30
+ /**
31
+ * Thread title
32
+ * @type {string}
33
+ * @memberof ThreadResponse
34
+ */
35
+ title: string;
36
+ /**
37
+ * Parent Thread ID (for subthreads)
38
+ * @type {string}
39
+ * @memberof ThreadResponse
40
+ */
41
+ parentThreadId?: string;
42
+ /**
43
+ * Tenant ID
44
+ * @type {string}
45
+ * @memberof ThreadResponse
46
+ */
47
+ tenantId: string;
48
+ /**
49
+ * Creation timestamp
50
+ * @type {Date}
51
+ * @memberof ThreadResponse
52
+ */
53
+ createdAt: Date;
54
+ /**
55
+ * Last update timestamp
56
+ * @type {Date}
57
+ * @memberof ThreadResponse
58
+ */
59
+ updatedAt: Date;
60
+ }
61
+ /**
62
+ * Check if a given object implements the ThreadResponse interface.
63
+ */
64
+ export declare function instanceOfThreadResponse(value: object): value is ThreadResponse;
65
+ export declare function ThreadResponseFromJSON(json: any): ThreadResponse;
66
+ export declare function ThreadResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ThreadResponse;
67
+ export declare function ThreadResponseToJSON(json: any): ThreadResponse;
68
+ export declare function ThreadResponseToJSONTyped(value?: ThreadResponse | null, ignoreDiscriminator?: boolean): any;
69
+ export declare const ThreadResponsePropertyValidationAttributesMap: {
70
+ [property: string]: {
71
+ maxLength?: number;
72
+ minLength?: number;
73
+ pattern?: string;
74
+ maximum?: number;
75
+ exclusiveMaximum?: boolean;
76
+ minimum?: number;
77
+ exclusiveMinimum?: boolean;
78
+ multipleOf?: number;
79
+ maxItems?: number;
80
+ minItems?: number;
81
+ uniqueItems?: boolean;
82
+ };
83
+ };
@@ -0,0 +1,66 @@
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 ThreadResponse interface.
16
+ */
17
+ export function instanceOfThreadResponse(value) {
18
+ if (!('id' in value) || value['id'] === undefined)
19
+ return false;
20
+ if (!('pathPartId' in value) || value['pathPartId'] === undefined)
21
+ return false;
22
+ if (!('title' in value) || value['title'] === undefined)
23
+ return false;
24
+ if (!('tenantId' in value) || value['tenantId'] === undefined)
25
+ return false;
26
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
27
+ return false;
28
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined)
29
+ return false;
30
+ return true;
31
+ }
32
+ export function ThreadResponseFromJSON(json) {
33
+ return ThreadResponseFromJSONTyped(json, false);
34
+ }
35
+ export function ThreadResponseFromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'id': json['id'],
41
+ 'pathPartId': json['path_part_id'],
42
+ 'title': json['title'],
43
+ 'parentThreadId': json['parent_thread_id'] == null ? undefined : json['parent_thread_id'],
44
+ 'tenantId': json['tenant_id'],
45
+ 'createdAt': (new Date(json['created_at'])),
46
+ 'updatedAt': (new Date(json['updated_at'])),
47
+ };
48
+ }
49
+ export function ThreadResponseToJSON(json) {
50
+ return ThreadResponseToJSONTyped(json, false);
51
+ }
52
+ export function ThreadResponseToJSONTyped(value, ignoreDiscriminator = false) {
53
+ if (value == null) {
54
+ return value;
55
+ }
56
+ return {
57
+ 'id': value['id'],
58
+ 'path_part_id': value['pathPartId'],
59
+ 'title': value['title'],
60
+ 'parent_thread_id': value['parentThreadId'],
61
+ 'tenant_id': value['tenantId'],
62
+ 'created_at': value['createdAt'].toISOString(),
63
+ 'updated_at': value['updatedAt'].toISOString(),
64
+ };
65
+ }
66
+ export const ThreadResponsePropertyValidationAttributesMap = {};
@@ -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 update a thread.
14
+ * @export
15
+ * @interface UpdateThreadRequest
16
+ */
17
+ export interface UpdateThreadRequest {
18
+ /**
19
+ * New thread title
20
+ * @type {string}
21
+ * @memberof UpdateThreadRequest
22
+ */
23
+ title?: string;
24
+ /**
25
+ * Parent thread ID. Set to a UUID to link, or null to clear.
26
+ * @type {string}
27
+ * @memberof UpdateThreadRequest
28
+ */
29
+ parentThreadId?: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the UpdateThreadRequest interface.
33
+ */
34
+ export declare function instanceOfUpdateThreadRequest(value: object): value is UpdateThreadRequest;
35
+ export declare function UpdateThreadRequestFromJSON(json: any): UpdateThreadRequest;
36
+ export declare function UpdateThreadRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateThreadRequest;
37
+ export declare function UpdateThreadRequestToJSON(json: any): UpdateThreadRequest;
38
+ export declare function UpdateThreadRequestToJSONTyped(value?: UpdateThreadRequest | null, ignoreDiscriminator?: boolean): any;
39
+ export declare const UpdateThreadRequestPropertyValidationAttributesMap: {
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 UpdateThreadRequest interface.
16
+ */
17
+ export function instanceOfUpdateThreadRequest(value) {
18
+ return true;
19
+ }
20
+ export function UpdateThreadRequestFromJSON(json) {
21
+ return UpdateThreadRequestFromJSONTyped(json, false);
22
+ }
23
+ export function UpdateThreadRequestFromJSONTyped(json, ignoreDiscriminator) {
24
+ if (json == null) {
25
+ return json;
26
+ }
27
+ return {
28
+ 'title': json['title'] == null ? undefined : json['title'],
29
+ 'parentThreadId': json['parent_thread_id'] == null ? undefined : json['parent_thread_id'],
30
+ };
31
+ }
32
+ export function UpdateThreadRequestToJSON(json) {
33
+ return UpdateThreadRequestToJSONTyped(json, false);
34
+ }
35
+ export function UpdateThreadRequestToJSONTyped(value, ignoreDiscriminator = false) {
36
+ if (value == null) {
37
+ return value;
38
+ }
39
+ return {
40
+ 'title': value['title'],
41
+ 'parent_thread_id': value['parentThreadId'],
42
+ };
43
+ }
44
+ export const UpdateThreadRequestPropertyValidationAttributesMap = {
45
+ title: {
46
+ maxLength: 255,
47
+ minLength: 1,
48
+ },
49
+ };
@@ -1,13 +1,17 @@
1
+ export * from './ChunkLineageResponse';
1
2
  export * from './ChunkMetadataInput';
2
3
  export * from './ChunkMetadataOutput';
3
4
  export * from './ChunkResponse';
4
5
  export * from './ChunkType';
6
+ export * from './CreateChunkLineageRequest';
5
7
  export * from './CreateChunkRequest';
6
8
  export * from './CreateDocumentRequest';
7
9
  export * from './CreateFolderRequest';
8
10
  export * from './CreatePasswordUserRequest';
9
11
  export * from './CreateSectionRequest';
10
12
  export * from './CreateTenantRequest';
13
+ export * from './CreateThreadMessageRequest';
14
+ export * from './CreateThreadRequest';
11
15
  export * from './DocumentContentPathPart';
12
16
  export * from './DocumentOrigin';
13
17
  export * from './DocumentResponse';
@@ -23,6 +27,10 @@ export * from './IdpType';
23
27
  export * from './InviteResponse';
24
28
  export * from './InviteStatus';
25
29
  export * from './InviteUserRequest';
30
+ export * from './LineageEdgeResponse';
31
+ export * from './LineageGraphResponse';
32
+ export * from './LineageNodeResponse';
33
+ export * from './MessageRole';
26
34
  export * from './OAuth2Config';
27
35
  export * from './PaginatedResponseDocumentContentPathPart';
28
36
  export * from './PaginatedResponseDocumentResponse';
@@ -33,6 +41,8 @@ export * from './PaginatedResponseInviteResponse';
33
41
  export * from './PaginatedResponsePathPartResponse';
34
42
  export * from './PaginatedResponseTenantResponse';
35
43
  export * from './PaginatedResponseTenantUserInTenantResponse';
44
+ export * from './PaginatedResponseThreadMessageResponse';
45
+ export * from './PaginatedResponseThreadResponse';
36
46
  export * from './PartType';
37
47
  export * from './PasswordResetRequest';
38
48
  export * from './PasswordResetWithTokenRequest';
@@ -46,12 +56,15 @@ export * from './SignInRequest';
46
56
  export * from './TenantResponse';
47
57
  export * from './TenantUserInTenantResponse';
48
58
  export * from './TenantUserRole';
59
+ export * from './ThreadMessageResponse';
60
+ export * from './ThreadResponse';
49
61
  export * from './UpdateChunkContentRequest';
50
62
  export * from './UpdateChunkMetadataRequest';
51
63
  export * from './UpdateDocumentRequest';
52
64
  export * from './UpdateFolderRequest';
53
65
  export * from './UpdateSectionRequest';
54
66
  export * from './UpdateTenantRequest';
67
+ export * from './UpdateThreadRequest';
55
68
  export * from './UpdateUserRequest';
56
69
  export * from './UserResponse';
57
70
  export * from './ValidationError';
@@ -1,15 +1,19 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
+ export * from './ChunkLineageResponse';
3
4
  export * from './ChunkMetadataInput';
4
5
  export * from './ChunkMetadataOutput';
5
6
  export * from './ChunkResponse';
6
7
  export * from './ChunkType';
8
+ export * from './CreateChunkLineageRequest';
7
9
  export * from './CreateChunkRequest';
8
10
  export * from './CreateDocumentRequest';
9
11
  export * from './CreateFolderRequest';
10
12
  export * from './CreatePasswordUserRequest';
11
13
  export * from './CreateSectionRequest';
12
14
  export * from './CreateTenantRequest';
15
+ export * from './CreateThreadMessageRequest';
16
+ export * from './CreateThreadRequest';
13
17
  export * from './DocumentContentPathPart';
14
18
  export * from './DocumentOrigin';
15
19
  export * from './DocumentResponse';
@@ -25,6 +29,10 @@ export * from './IdpType';
25
29
  export * from './InviteResponse';
26
30
  export * from './InviteStatus';
27
31
  export * from './InviteUserRequest';
32
+ export * from './LineageEdgeResponse';
33
+ export * from './LineageGraphResponse';
34
+ export * from './LineageNodeResponse';
35
+ export * from './MessageRole';
28
36
  export * from './OAuth2Config';
29
37
  export * from './PaginatedResponseDocumentContentPathPart';
30
38
  export * from './PaginatedResponseDocumentResponse';
@@ -35,6 +43,8 @@ export * from './PaginatedResponseInviteResponse';
35
43
  export * from './PaginatedResponsePathPartResponse';
36
44
  export * from './PaginatedResponseTenantResponse';
37
45
  export * from './PaginatedResponseTenantUserInTenantResponse';
46
+ export * from './PaginatedResponseThreadMessageResponse';
47
+ export * from './PaginatedResponseThreadResponse';
38
48
  export * from './PartType';
39
49
  export * from './PasswordResetRequest';
40
50
  export * from './PasswordResetWithTokenRequest';
@@ -48,12 +58,15 @@ export * from './SignInRequest';
48
58
  export * from './TenantResponse';
49
59
  export * from './TenantUserInTenantResponse';
50
60
  export * from './TenantUserRole';
61
+ export * from './ThreadMessageResponse';
62
+ export * from './ThreadResponse';
51
63
  export * from './UpdateChunkContentRequest';
52
64
  export * from './UpdateChunkMetadataRequest';
53
65
  export * from './UpdateDocumentRequest';
54
66
  export * from './UpdateFolderRequest';
55
67
  export * from './UpdateSectionRequest';
56
68
  export * from './UpdateTenantRequest';
69
+ export * from './UpdateThreadRequest';
57
70
  export * from './UpdateUserRequest';
58
71
  export * from './UserResponse';
59
72
  export * from './ValidationError';
@@ -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,64 @@
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.ChunkLineageResponsePropertyValidationAttributesMap = void 0;
17
+ exports.instanceOfChunkLineageResponse = instanceOfChunkLineageResponse;
18
+ exports.ChunkLineageResponseFromJSON = ChunkLineageResponseFromJSON;
19
+ exports.ChunkLineageResponseFromJSONTyped = ChunkLineageResponseFromJSONTyped;
20
+ exports.ChunkLineageResponseToJSON = ChunkLineageResponseToJSON;
21
+ exports.ChunkLineageResponseToJSONTyped = ChunkLineageResponseToJSONTyped;
22
+ /**
23
+ * Check if a given object implements the ChunkLineageResponse interface.
24
+ */
25
+ function instanceOfChunkLineageResponse(value) {
26
+ if (!('parentChunkId' in value) || value['parentChunkId'] === undefined)
27
+ return false;
28
+ if (!('chunkId' in value) || value['chunkId'] === undefined)
29
+ return false;
30
+ if (!('tenantId' in value) || value['tenantId'] === undefined)
31
+ return false;
32
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
33
+ return false;
34
+ return true;
35
+ }
36
+ function ChunkLineageResponseFromJSON(json) {
37
+ return ChunkLineageResponseFromJSONTyped(json, false);
38
+ }
39
+ function ChunkLineageResponseFromJSONTyped(json, ignoreDiscriminator) {
40
+ if (json == null) {
41
+ return json;
42
+ }
43
+ return {
44
+ 'parentChunkId': json['parent_chunk_id'],
45
+ 'chunkId': json['chunk_id'],
46
+ 'tenantId': json['tenant_id'],
47
+ 'createdAt': (new Date(json['created_at'])),
48
+ };
49
+ }
50
+ function ChunkLineageResponseToJSON(json) {
51
+ return ChunkLineageResponseToJSONTyped(json, false);
52
+ }
53
+ function ChunkLineageResponseToJSONTyped(value, ignoreDiscriminator = false) {
54
+ if (value == null) {
55
+ return value;
56
+ }
57
+ return {
58
+ 'parent_chunk_id': value['parentChunkId'],
59
+ 'chunk_id': value['chunkId'],
60
+ 'tenant_id': value['tenantId'],
61
+ 'created_at': value['createdAt'].toISOString(),
62
+ };
63
+ }
64
+ exports.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,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.CreateChunkLineageRequestPropertyValidationAttributesMap = void 0;
17
+ exports.instanceOfCreateChunkLineageRequest = instanceOfCreateChunkLineageRequest;
18
+ exports.CreateChunkLineageRequestFromJSON = CreateChunkLineageRequestFromJSON;
19
+ exports.CreateChunkLineageRequestFromJSONTyped = CreateChunkLineageRequestFromJSONTyped;
20
+ exports.CreateChunkLineageRequestToJSON = CreateChunkLineageRequestToJSON;
21
+ exports.CreateChunkLineageRequestToJSONTyped = CreateChunkLineageRequestToJSONTyped;
22
+ /**
23
+ * Check if a given object implements the CreateChunkLineageRequest interface.
24
+ */
25
+ function instanceOfCreateChunkLineageRequest(value) {
26
+ if (!('chunkId' in value) || value['chunkId'] === undefined)
27
+ return false;
28
+ if (!('parentChunkIds' in value) || value['parentChunkIds'] === undefined)
29
+ return false;
30
+ return true;
31
+ }
32
+ function CreateChunkLineageRequestFromJSON(json) {
33
+ return CreateChunkLineageRequestFromJSONTyped(json, false);
34
+ }
35
+ function CreateChunkLineageRequestFromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'chunkId': json['chunk_id'],
41
+ 'parentChunkIds': json['parent_chunk_ids'],
42
+ };
43
+ }
44
+ function CreateChunkLineageRequestToJSON(json) {
45
+ return CreateChunkLineageRequestToJSONTyped(json, false);
46
+ }
47
+ function CreateChunkLineageRequestToJSONTyped(value, ignoreDiscriminator = false) {
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ 'chunk_id': value['chunkId'],
53
+ 'parent_chunk_ids': value['parentChunkIds'],
54
+ };
55
+ }
56
+ exports.CreateChunkLineageRequestPropertyValidationAttributesMap = {
57
+ parentChunkIds: {
58
+ minItems: 1,
59
+ uniqueItems: false,
60
+ },
61
+ };
@@ -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
+ };