@knowledge-stack/ksapi 1.8.0 → 1.10.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 (98) hide show
  1. package/.openapi-generator/FILES +14 -0
  2. package/README.md +2 -2
  3. package/dist/apis/DocumentVersionsApi.d.ts +36 -1
  4. package/dist/apis/DocumentVersionsApi.js +41 -0
  5. package/dist/apis/FoldersApi.d.ts +38 -1
  6. package/dist/apis/FoldersApi.js +44 -0
  7. package/dist/apis/PathPartsApi.d.ts +4 -6
  8. package/dist/apis/PathPartsApi.js +2 -5
  9. package/dist/apis/ThreadMessagesApi.d.ts +123 -0
  10. package/dist/apis/ThreadMessagesApi.js +147 -0
  11. package/dist/apis/ThreadsApi.d.ts +177 -0
  12. package/dist/apis/ThreadsApi.js +203 -0
  13. package/dist/apis/index.d.ts +2 -0
  14. package/dist/apis/index.js +2 -0
  15. package/dist/esm/apis/DocumentVersionsApi.d.ts +36 -1
  16. package/dist/esm/apis/DocumentVersionsApi.js +42 -1
  17. package/dist/esm/apis/FoldersApi.d.ts +38 -1
  18. package/dist/esm/apis/FoldersApi.js +45 -1
  19. package/dist/esm/apis/PathPartsApi.d.ts +4 -6
  20. package/dist/esm/apis/PathPartsApi.js +2 -5
  21. package/dist/esm/apis/ThreadMessagesApi.d.ts +123 -0
  22. package/dist/esm/apis/ThreadMessagesApi.js +143 -0
  23. package/dist/esm/apis/ThreadsApi.d.ts +177 -0
  24. package/dist/esm/apis/ThreadsApi.js +199 -0
  25. package/dist/esm/apis/index.d.ts +2 -0
  26. package/dist/esm/apis/index.js +2 -0
  27. package/dist/esm/models/CreateThreadMessageRequest.d.ts +58 -0
  28. package/dist/esm/models/CreateThreadMessageRequest.js +50 -0
  29. package/dist/esm/models/CreateThreadRequest.d.ts +53 -0
  30. package/dist/esm/models/CreateThreadRequest.js +49 -0
  31. package/dist/esm/models/DocumentContentPathPart.d.ts +119 -0
  32. package/dist/esm/models/DocumentContentPathPart.js +83 -0
  33. package/dist/esm/models/FolderDocumentResponse.d.ts +138 -0
  34. package/dist/esm/models/FolderDocumentResponse.js +88 -0
  35. package/dist/esm/models/MessageRole.d.ts +26 -0
  36. package/dist/esm/models/MessageRole.js +44 -0
  37. package/dist/esm/models/PaginatedResponseDocumentContentPathPart.d.ts +66 -0
  38. package/dist/esm/models/PaginatedResponseDocumentContentPathPart.js +70 -0
  39. package/dist/esm/models/PaginatedResponseFolderDocumentResponse.d.ts +66 -0
  40. package/dist/esm/models/PaginatedResponseFolderDocumentResponse.js +70 -0
  41. package/dist/esm/models/PaginatedResponseThreadMessageResponse.d.ts +66 -0
  42. package/dist/esm/models/PaginatedResponseThreadMessageResponse.js +70 -0
  43. package/dist/esm/models/PaginatedResponseThreadResponse.d.ts +66 -0
  44. package/dist/esm/models/PaginatedResponseThreadResponse.js +70 -0
  45. package/dist/esm/models/ThreadMessageResponse.d.ts +100 -0
  46. package/dist/esm/models/ThreadMessageResponse.js +78 -0
  47. package/dist/esm/models/ThreadResponse.d.ts +83 -0
  48. package/dist/esm/models/ThreadResponse.js +66 -0
  49. package/dist/esm/models/UpdateThreadRequest.d.ts +53 -0
  50. package/dist/esm/models/UpdateThreadRequest.js +49 -0
  51. package/dist/esm/models/index.d.ts +12 -0
  52. package/dist/esm/models/index.js +12 -0
  53. package/dist/models/CreateThreadMessageRequest.d.ts +58 -0
  54. package/dist/models/CreateThreadMessageRequest.js +58 -0
  55. package/dist/models/CreateThreadRequest.d.ts +53 -0
  56. package/dist/models/CreateThreadRequest.js +57 -0
  57. package/dist/models/DocumentContentPathPart.d.ts +119 -0
  58. package/dist/models/DocumentContentPathPart.js +91 -0
  59. package/dist/models/FolderDocumentResponse.d.ts +138 -0
  60. package/dist/models/FolderDocumentResponse.js +96 -0
  61. package/dist/models/MessageRole.d.ts +26 -0
  62. package/dist/models/MessageRole.js +52 -0
  63. package/dist/models/PaginatedResponseDocumentContentPathPart.d.ts +66 -0
  64. package/dist/models/PaginatedResponseDocumentContentPathPart.js +78 -0
  65. package/dist/models/PaginatedResponseFolderDocumentResponse.d.ts +66 -0
  66. package/dist/models/PaginatedResponseFolderDocumentResponse.js +78 -0
  67. package/dist/models/PaginatedResponseThreadMessageResponse.d.ts +66 -0
  68. package/dist/models/PaginatedResponseThreadMessageResponse.js +78 -0
  69. package/dist/models/PaginatedResponseThreadResponse.d.ts +66 -0
  70. package/dist/models/PaginatedResponseThreadResponse.js +78 -0
  71. package/dist/models/ThreadMessageResponse.d.ts +100 -0
  72. package/dist/models/ThreadMessageResponse.js +86 -0
  73. package/dist/models/ThreadResponse.d.ts +83 -0
  74. package/dist/models/ThreadResponse.js +74 -0
  75. package/dist/models/UpdateThreadRequest.d.ts +53 -0
  76. package/dist/models/UpdateThreadRequest.js +57 -0
  77. package/dist/models/index.d.ts +12 -0
  78. package/dist/models/index.js +12 -0
  79. package/package.json +1 -1
  80. package/src/apis/DocumentVersionsApi.ts +82 -0
  81. package/src/apis/FoldersApi.ts +88 -0
  82. package/src/apis/PathPartsApi.ts +4 -10
  83. package/src/apis/ThreadMessagesApi.ts +271 -0
  84. package/src/apis/ThreadsApi.ts +377 -0
  85. package/src/apis/index.ts +2 -0
  86. package/src/models/CreateThreadMessageRequest.ts +105 -0
  87. package/src/models/CreateThreadRequest.ts +94 -0
  88. package/src/models/DocumentContentPathPart.ts +205 -0
  89. package/src/models/FolderDocumentResponse.ts +234 -0
  90. package/src/models/MessageRole.ts +54 -0
  91. package/src/models/PaginatedResponseDocumentContentPathPart.ts +130 -0
  92. package/src/models/PaginatedResponseFolderDocumentResponse.ts +130 -0
  93. package/src/models/PaginatedResponseThreadMessageResponse.ts +130 -0
  94. package/src/models/PaginatedResponseThreadResponse.ts +130 -0
  95. package/src/models/ThreadMessageResponse.ts +168 -0
  96. package/src/models/ThreadResponse.ts +136 -0
  97. package/src/models/UpdateThreadRequest.ts +94 -0
  98. package/src/models/index.ts +12 -0
@@ -0,0 +1,70 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Knowledge Stack API
5
+ * Knowledge Stack backend API for authentication and knowledge management
6
+ *
7
+ * The version of the OpenAPI document: 0.1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { ThreadMessageResponseFromJSON, ThreadMessageResponseToJSON, } from './ThreadMessageResponse';
15
+ /**
16
+ * Check if a given object implements the PaginatedResponseThreadMessageResponse interface.
17
+ */
18
+ export function instanceOfPaginatedResponseThreadMessageResponse(value) {
19
+ if (!('items' in value) || value['items'] === undefined)
20
+ return false;
21
+ if (!('total' in value) || value['total'] === undefined)
22
+ return false;
23
+ if (!('limit' in value) || value['limit'] === undefined)
24
+ return false;
25
+ if (!('offset' in value) || value['offset'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ export function PaginatedResponseThreadMessageResponseFromJSON(json) {
30
+ return PaginatedResponseThreadMessageResponseFromJSONTyped(json, false);
31
+ }
32
+ export function PaginatedResponseThreadMessageResponseFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'items': (json['items'].map(ThreadMessageResponseFromJSON)),
38
+ 'total': json['total'],
39
+ 'limit': json['limit'],
40
+ 'offset': json['offset'],
41
+ };
42
+ }
43
+ export function PaginatedResponseThreadMessageResponseToJSON(json) {
44
+ return PaginatedResponseThreadMessageResponseToJSONTyped(json, false);
45
+ }
46
+ export function PaginatedResponseThreadMessageResponseToJSONTyped(value, ignoreDiscriminator = false) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'items': (value['items'].map(ThreadMessageResponseToJSON)),
52
+ 'total': value['total'],
53
+ 'limit': value['limit'],
54
+ 'offset': value['offset'],
55
+ };
56
+ }
57
+ export const PaginatedResponseThreadMessageResponsePropertyValidationAttributesMap = {
58
+ total: {
59
+ minimum: 0,
60
+ exclusiveMinimum: false,
61
+ },
62
+ limit: {
63
+ minimum: 1,
64
+ exclusiveMinimum: false,
65
+ },
66
+ offset: {
67
+ minimum: 0,
68
+ exclusiveMinimum: false,
69
+ },
70
+ };
@@ -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 { ThreadResponse } from './ThreadResponse';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface PaginatedResponseThreadResponse
17
+ */
18
+ export interface PaginatedResponseThreadResponse {
19
+ /**
20
+ * List of items
21
+ * @type {Array<ThreadResponse>}
22
+ * @memberof PaginatedResponseThreadResponse
23
+ */
24
+ items: Array<ThreadResponse>;
25
+ /**
26
+ * Total number of items
27
+ * @type {number}
28
+ * @memberof PaginatedResponseThreadResponse
29
+ */
30
+ total: number;
31
+ /**
32
+ * Number of items per page
33
+ * @type {number}
34
+ * @memberof PaginatedResponseThreadResponse
35
+ */
36
+ limit: number;
37
+ /**
38
+ * Number of items to skip
39
+ * @type {number}
40
+ * @memberof PaginatedResponseThreadResponse
41
+ */
42
+ offset: number;
43
+ }
44
+ /**
45
+ * Check if a given object implements the PaginatedResponseThreadResponse interface.
46
+ */
47
+ export declare function instanceOfPaginatedResponseThreadResponse(value: object): value is PaginatedResponseThreadResponse;
48
+ export declare function PaginatedResponseThreadResponseFromJSON(json: any): PaginatedResponseThreadResponse;
49
+ export declare function PaginatedResponseThreadResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedResponseThreadResponse;
50
+ export declare function PaginatedResponseThreadResponseToJSON(json: any): PaginatedResponseThreadResponse;
51
+ export declare function PaginatedResponseThreadResponseToJSONTyped(value?: PaginatedResponseThreadResponse | null, ignoreDiscriminator?: boolean): any;
52
+ export declare const PaginatedResponseThreadResponsePropertyValidationAttributesMap: {
53
+ [property: string]: {
54
+ maxLength?: number;
55
+ minLength?: number;
56
+ pattern?: string;
57
+ maximum?: number;
58
+ exclusiveMaximum?: boolean;
59
+ minimum?: number;
60
+ exclusiveMinimum?: boolean;
61
+ multipleOf?: number;
62
+ maxItems?: number;
63
+ minItems?: number;
64
+ uniqueItems?: boolean;
65
+ };
66
+ };
@@ -0,0 +1,70 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Knowledge Stack API
5
+ * Knowledge Stack backend API for authentication and knowledge management
6
+ *
7
+ * The version of the OpenAPI document: 0.1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { ThreadResponseFromJSON, ThreadResponseToJSON, } from './ThreadResponse';
15
+ /**
16
+ * Check if a given object implements the PaginatedResponseThreadResponse interface.
17
+ */
18
+ export function instanceOfPaginatedResponseThreadResponse(value) {
19
+ if (!('items' in value) || value['items'] === undefined)
20
+ return false;
21
+ if (!('total' in value) || value['total'] === undefined)
22
+ return false;
23
+ if (!('limit' in value) || value['limit'] === undefined)
24
+ return false;
25
+ if (!('offset' in value) || value['offset'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ export function PaginatedResponseThreadResponseFromJSON(json) {
30
+ return PaginatedResponseThreadResponseFromJSONTyped(json, false);
31
+ }
32
+ export function PaginatedResponseThreadResponseFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'items': (json['items'].map(ThreadResponseFromJSON)),
38
+ 'total': json['total'],
39
+ 'limit': json['limit'],
40
+ 'offset': json['offset'],
41
+ };
42
+ }
43
+ export function PaginatedResponseThreadResponseToJSON(json) {
44
+ return PaginatedResponseThreadResponseToJSONTyped(json, false);
45
+ }
46
+ export function PaginatedResponseThreadResponseToJSONTyped(value, ignoreDiscriminator = false) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'items': (value['items'].map(ThreadResponseToJSON)),
52
+ 'total': value['total'],
53
+ 'limit': value['limit'],
54
+ 'offset': value['offset'],
55
+ };
56
+ }
57
+ export const PaginatedResponseThreadResponsePropertyValidationAttributesMap = {
58
+ total: {
59
+ minimum: 0,
60
+ exclusiveMinimum: false,
61
+ },
62
+ limit: {
63
+ minimum: 1,
64
+ exclusiveMinimum: false,
65
+ },
66
+ offset: {
67
+ minimum: 0,
68
+ exclusiveMinimum: false,
69
+ },
70
+ };
@@ -0,0 +1,100 @@
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
+ * Thread message response model.
15
+ * @export
16
+ * @interface ThreadMessageResponse
17
+ */
18
+ export interface ThreadMessageResponse {
19
+ /**
20
+ * ThreadMessage ID
21
+ * @type {string}
22
+ * @memberof ThreadMessageResponse
23
+ */
24
+ id: string;
25
+ /**
26
+ * PathPart ID
27
+ * @type {string}
28
+ * @memberof ThreadMessageResponse
29
+ */
30
+ pathPartId: string;
31
+ /**
32
+ * Sequence number (from path_part.name)
33
+ * @type {number}
34
+ * @memberof ThreadMessageResponse
35
+ */
36
+ sequence: number;
37
+ /**
38
+ * Message role
39
+ * @type {MessageRole}
40
+ * @memberof ThreadMessageResponse
41
+ */
42
+ role: MessageRole;
43
+ /**
44
+ * Structured message content
45
+ * @type {object}
46
+ * @memberof ThreadMessageResponse
47
+ */
48
+ content: object;
49
+ /**
50
+ * Thread's PathPart ID
51
+ * @type {string}
52
+ * @memberof ThreadMessageResponse
53
+ */
54
+ parentId: string;
55
+ /**
56
+ * Tenant ID
57
+ * @type {string}
58
+ * @memberof ThreadMessageResponse
59
+ */
60
+ tenantId: string;
61
+ /**
62
+ * Creation timestamp
63
+ * @type {Date}
64
+ * @memberof ThreadMessageResponse
65
+ */
66
+ createdAt: Date;
67
+ /**
68
+ * Last update timestamp
69
+ * @type {Date}
70
+ * @memberof ThreadMessageResponse
71
+ */
72
+ updatedAt: Date;
73
+ }
74
+ /**
75
+ * Check if a given object implements the ThreadMessageResponse interface.
76
+ */
77
+ export declare function instanceOfThreadMessageResponse(value: object): value is ThreadMessageResponse;
78
+ export declare function ThreadMessageResponseFromJSON(json: any): ThreadMessageResponse;
79
+ export declare function ThreadMessageResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ThreadMessageResponse;
80
+ export declare function ThreadMessageResponseToJSON(json: any): ThreadMessageResponse;
81
+ export declare function ThreadMessageResponseToJSONTyped(value?: ThreadMessageResponse | null, ignoreDiscriminator?: boolean): any;
82
+ export declare const ThreadMessageResponsePropertyValidationAttributesMap: {
83
+ [property: string]: {
84
+ maxLength?: number;
85
+ minLength?: number;
86
+ pattern?: string;
87
+ maximum?: number;
88
+ exclusiveMaximum?: boolean;
89
+ minimum?: number;
90
+ exclusiveMinimum?: boolean;
91
+ multipleOf?: number;
92
+ maxItems?: number;
93
+ minItems?: number;
94
+ uniqueItems?: boolean;
95
+ };
96
+ };
97
+ export declare const ThreadMessageResponseAdditionalPropertiesValidationAttributes: {
98
+ maxProperties?: number;
99
+ minProperties?: number;
100
+ };
@@ -0,0 +1,78 @@
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 ThreadMessageResponse interface.
17
+ */
18
+ export function instanceOfThreadMessageResponse(value) {
19
+ if (!('id' in value) || value['id'] === undefined)
20
+ return false;
21
+ if (!('pathPartId' in value) || value['pathPartId'] === undefined)
22
+ return false;
23
+ if (!('sequence' in value) || value['sequence'] === undefined)
24
+ return false;
25
+ if (!('role' in value) || value['role'] === undefined)
26
+ return false;
27
+ if (!('content' in value) || value['content'] === undefined)
28
+ return false;
29
+ if (!('parentId' in value) || value['parentId'] === undefined)
30
+ return false;
31
+ if (!('tenantId' in value) || value['tenantId'] === undefined)
32
+ return false;
33
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
34
+ return false;
35
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined)
36
+ return false;
37
+ return true;
38
+ }
39
+ export function ThreadMessageResponseFromJSON(json) {
40
+ return ThreadMessageResponseFromJSONTyped(json, false);
41
+ }
42
+ export function ThreadMessageResponseFromJSONTyped(json, ignoreDiscriminator) {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+ 'id': json['id'],
48
+ 'pathPartId': json['path_part_id'],
49
+ 'sequence': json['sequence'],
50
+ 'role': MessageRoleFromJSON(json['role']),
51
+ 'content': json['content'],
52
+ 'parentId': json['parent_id'],
53
+ 'tenantId': json['tenant_id'],
54
+ 'createdAt': (new Date(json['created_at'])),
55
+ 'updatedAt': (new Date(json['updated_at'])),
56
+ };
57
+ }
58
+ export function ThreadMessageResponseToJSON(json) {
59
+ return ThreadMessageResponseToJSONTyped(json, false);
60
+ }
61
+ export function ThreadMessageResponseToJSONTyped(value, ignoreDiscriminator = false) {
62
+ if (value == null) {
63
+ return value;
64
+ }
65
+ return {
66
+ 'id': value['id'],
67
+ 'path_part_id': value['pathPartId'],
68
+ 'sequence': value['sequence'],
69
+ 'role': MessageRoleToJSON(value['role']),
70
+ 'content': value['content'],
71
+ 'parent_id': value['parentId'],
72
+ 'tenant_id': value['tenantId'],
73
+ 'created_at': value['createdAt'].toISOString(),
74
+ 'updated_at': value['updatedAt'].toISOString(),
75
+ };
76
+ }
77
+ export const ThreadMessageResponsePropertyValidationAttributesMap = {};
78
+ export const ThreadMessageResponseAdditionalPropertiesValidationAttributes = {};
@@ -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
+ };
@@ -8,12 +8,16 @@ export * from './CreateFolderRequest';
8
8
  export * from './CreatePasswordUserRequest';
9
9
  export * from './CreateSectionRequest';
10
10
  export * from './CreateTenantRequest';
11
+ export * from './CreateThreadMessageRequest';
12
+ export * from './CreateThreadRequest';
13
+ export * from './DocumentContentPathPart';
11
14
  export * from './DocumentOrigin';
12
15
  export * from './DocumentResponse';
13
16
  export * from './DocumentType';
14
17
  export * from './DocumentVersionResponse';
15
18
  export * from './EmailSentResponse';
16
19
  export * from './EmailVerificationRequest';
20
+ export * from './FolderDocumentResponse';
17
21
  export * from './FolderResponse';
18
22
  export * from './HTTPValidationError';
19
23
  export * from './HealthCheckResponse';
@@ -21,14 +25,19 @@ export * from './IdpType';
21
25
  export * from './InviteResponse';
22
26
  export * from './InviteStatus';
23
27
  export * from './InviteUserRequest';
28
+ export * from './MessageRole';
24
29
  export * from './OAuth2Config';
30
+ export * from './PaginatedResponseDocumentContentPathPart';
25
31
  export * from './PaginatedResponseDocumentResponse';
26
32
  export * from './PaginatedResponseDocumentVersionResponse';
33
+ export * from './PaginatedResponseFolderDocumentResponse';
27
34
  export * from './PaginatedResponseFolderResponse';
28
35
  export * from './PaginatedResponseInviteResponse';
29
36
  export * from './PaginatedResponsePathPartResponse';
30
37
  export * from './PaginatedResponseTenantResponse';
31
38
  export * from './PaginatedResponseTenantUserInTenantResponse';
39
+ export * from './PaginatedResponseThreadMessageResponse';
40
+ export * from './PaginatedResponseThreadResponse';
32
41
  export * from './PartType';
33
42
  export * from './PasswordResetRequest';
34
43
  export * from './PasswordResetWithTokenRequest';
@@ -42,12 +51,15 @@ export * from './SignInRequest';
42
51
  export * from './TenantResponse';
43
52
  export * from './TenantUserInTenantResponse';
44
53
  export * from './TenantUserRole';
54
+ export * from './ThreadMessageResponse';
55
+ export * from './ThreadResponse';
45
56
  export * from './UpdateChunkContentRequest';
46
57
  export * from './UpdateChunkMetadataRequest';
47
58
  export * from './UpdateDocumentRequest';
48
59
  export * from './UpdateFolderRequest';
49
60
  export * from './UpdateSectionRequest';
50
61
  export * from './UpdateTenantRequest';
62
+ export * from './UpdateThreadRequest';
51
63
  export * from './UpdateUserRequest';
52
64
  export * from './UserResponse';
53
65
  export * from './ValidationError';