@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.
- package/.openapi-generator/FILES +14 -0
- package/README.md +2 -2
- package/dist/apis/DocumentVersionsApi.d.ts +36 -1
- package/dist/apis/DocumentVersionsApi.js +41 -0
- package/dist/apis/FoldersApi.d.ts +38 -1
- package/dist/apis/FoldersApi.js +44 -0
- package/dist/apis/PathPartsApi.d.ts +4 -6
- package/dist/apis/PathPartsApi.js +2 -5
- 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 +2 -0
- package/dist/apis/index.js +2 -0
- package/dist/esm/apis/DocumentVersionsApi.d.ts +36 -1
- package/dist/esm/apis/DocumentVersionsApi.js +42 -1
- package/dist/esm/apis/FoldersApi.d.ts +38 -1
- package/dist/esm/apis/FoldersApi.js +45 -1
- package/dist/esm/apis/PathPartsApi.d.ts +4 -6
- package/dist/esm/apis/PathPartsApi.js +2 -5
- 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 +2 -0
- package/dist/esm/apis/index.js +2 -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/DocumentContentPathPart.d.ts +119 -0
- package/dist/esm/models/DocumentContentPathPart.js +83 -0
- package/dist/esm/models/FolderDocumentResponse.d.ts +138 -0
- package/dist/esm/models/FolderDocumentResponse.js +88 -0
- package/dist/esm/models/MessageRole.d.ts +26 -0
- package/dist/esm/models/MessageRole.js +44 -0
- package/dist/esm/models/PaginatedResponseDocumentContentPathPart.d.ts +66 -0
- package/dist/esm/models/PaginatedResponseDocumentContentPathPart.js +70 -0
- package/dist/esm/models/PaginatedResponseFolderDocumentResponse.d.ts +66 -0
- package/dist/esm/models/PaginatedResponseFolderDocumentResponse.js +70 -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 +12 -0
- package/dist/esm/models/index.js +12 -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/DocumentContentPathPart.d.ts +119 -0
- package/dist/models/DocumentContentPathPart.js +91 -0
- package/dist/models/FolderDocumentResponse.d.ts +138 -0
- package/dist/models/FolderDocumentResponse.js +96 -0
- package/dist/models/MessageRole.d.ts +26 -0
- package/dist/models/MessageRole.js +52 -0
- package/dist/models/PaginatedResponseDocumentContentPathPart.d.ts +66 -0
- package/dist/models/PaginatedResponseDocumentContentPathPart.js +78 -0
- package/dist/models/PaginatedResponseFolderDocumentResponse.d.ts +66 -0
- package/dist/models/PaginatedResponseFolderDocumentResponse.js +78 -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 +12 -0
- package/dist/models/index.js +12 -0
- package/package.json +1 -1
- package/src/apis/DocumentVersionsApi.ts +82 -0
- package/src/apis/FoldersApi.ts +88 -0
- package/src/apis/PathPartsApi.ts +4 -10
- package/src/apis/ThreadMessagesApi.ts +271 -0
- package/src/apis/ThreadsApi.ts +377 -0
- package/src/apis/index.ts +2 -0
- package/src/models/CreateThreadMessageRequest.ts +105 -0
- package/src/models/CreateThreadRequest.ts +94 -0
- package/src/models/DocumentContentPathPart.ts +205 -0
- package/src/models/FolderDocumentResponse.ts +234 -0
- package/src/models/MessageRole.ts +54 -0
- package/src/models/PaginatedResponseDocumentContentPathPart.ts +130 -0
- package/src/models/PaginatedResponseFolderDocumentResponse.ts +130 -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 +12 -0
|
@@ -0,0 +1,138 @@
|
|
|
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 { DocumentOrigin } from './DocumentOrigin';
|
|
13
|
+
import type { PartType } from './PartType';
|
|
14
|
+
import type { DocumentType } from './DocumentType';
|
|
15
|
+
import type { DocumentVersionResponse } from './DocumentVersionResponse';
|
|
16
|
+
/**
|
|
17
|
+
* Response for folder contents - can be either a Folder or a Document.
|
|
18
|
+
*
|
|
19
|
+
* Inherits PathPart fields from PathPartResponse and adds type-specific fields.
|
|
20
|
+
*
|
|
21
|
+
* Discriminated union based on part_type:
|
|
22
|
+
* - FOLDER: folder_id is set, document fields are None
|
|
23
|
+
* - DOCUMENT: document_id and document fields are set, folder_id is None
|
|
24
|
+
*
|
|
25
|
+
* Inherited fields from PathPartResponse:
|
|
26
|
+
* - path_part_id, name, part_type, parent_id, metadata_obj_id, created_at, updated_at
|
|
27
|
+
* @export
|
|
28
|
+
* @interface FolderDocumentResponse
|
|
29
|
+
*/
|
|
30
|
+
export interface FolderDocumentResponse {
|
|
31
|
+
/**
|
|
32
|
+
* PathPart ID
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof FolderDocumentResponse
|
|
35
|
+
*/
|
|
36
|
+
pathPartId: string;
|
|
37
|
+
/**
|
|
38
|
+
* Item name
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof FolderDocumentResponse
|
|
41
|
+
*/
|
|
42
|
+
name: string;
|
|
43
|
+
/**
|
|
44
|
+
* Type (FOLDER, DOCUMENT, etc.)
|
|
45
|
+
* @type {PartType}
|
|
46
|
+
* @memberof FolderDocumentResponse
|
|
47
|
+
*/
|
|
48
|
+
partType: PartType;
|
|
49
|
+
/**
|
|
50
|
+
* Parent PathPart ID
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof FolderDocumentResponse
|
|
53
|
+
*/
|
|
54
|
+
parentId: string;
|
|
55
|
+
/**
|
|
56
|
+
* ID of the underlying object
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof FolderDocumentResponse
|
|
59
|
+
*/
|
|
60
|
+
metadataObjId: string;
|
|
61
|
+
/**
|
|
62
|
+
* Creation timestamp
|
|
63
|
+
* @type {Date}
|
|
64
|
+
* @memberof FolderDocumentResponse
|
|
65
|
+
*/
|
|
66
|
+
createdAt: Date;
|
|
67
|
+
/**
|
|
68
|
+
* Last update timestamp
|
|
69
|
+
* @type {Date}
|
|
70
|
+
* @memberof FolderDocumentResponse
|
|
71
|
+
*/
|
|
72
|
+
updatedAt: Date;
|
|
73
|
+
/**
|
|
74
|
+
* Folder ID (present for folders)
|
|
75
|
+
* @type {string}
|
|
76
|
+
* @memberof FolderDocumentResponse
|
|
77
|
+
*/
|
|
78
|
+
folderId?: string;
|
|
79
|
+
/**
|
|
80
|
+
* Document ID (present for documents)
|
|
81
|
+
* @type {string}
|
|
82
|
+
* @memberof FolderDocumentResponse
|
|
83
|
+
*/
|
|
84
|
+
documentId?: string;
|
|
85
|
+
/**
|
|
86
|
+
* Document type (present for documents)
|
|
87
|
+
* @type {DocumentType}
|
|
88
|
+
* @memberof FolderDocumentResponse
|
|
89
|
+
*/
|
|
90
|
+
documentType?: DocumentType;
|
|
91
|
+
/**
|
|
92
|
+
* Document origin (present for documents)
|
|
93
|
+
* @type {DocumentOrigin}
|
|
94
|
+
* @memberof FolderDocumentResponse
|
|
95
|
+
*/
|
|
96
|
+
documentOrigin?: DocumentOrigin;
|
|
97
|
+
/**
|
|
98
|
+
* Active version ID (present for documents)
|
|
99
|
+
* @type {string}
|
|
100
|
+
* @memberof FolderDocumentResponse
|
|
101
|
+
*/
|
|
102
|
+
activeVersionId?: string;
|
|
103
|
+
/**
|
|
104
|
+
* Active version details (present for documents)
|
|
105
|
+
* @type {DocumentVersionResponse}
|
|
106
|
+
* @memberof FolderDocumentResponse
|
|
107
|
+
*/
|
|
108
|
+
activeVersion?: DocumentVersionResponse;
|
|
109
|
+
/**
|
|
110
|
+
* Tenant ID
|
|
111
|
+
* @type {string}
|
|
112
|
+
* @memberof FolderDocumentResponse
|
|
113
|
+
*/
|
|
114
|
+
tenantId: string;
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* Check if a given object implements the FolderDocumentResponse interface.
|
|
118
|
+
*/
|
|
119
|
+
export declare function instanceOfFolderDocumentResponse(value: object): value is FolderDocumentResponse;
|
|
120
|
+
export declare function FolderDocumentResponseFromJSON(json: any): FolderDocumentResponse;
|
|
121
|
+
export declare function FolderDocumentResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): FolderDocumentResponse;
|
|
122
|
+
export declare function FolderDocumentResponseToJSON(json: any): FolderDocumentResponse;
|
|
123
|
+
export declare function FolderDocumentResponseToJSONTyped(value?: FolderDocumentResponse | null, ignoreDiscriminator?: boolean): any;
|
|
124
|
+
export declare const FolderDocumentResponsePropertyValidationAttributesMap: {
|
|
125
|
+
[property: string]: {
|
|
126
|
+
maxLength?: number;
|
|
127
|
+
minLength?: number;
|
|
128
|
+
pattern?: string;
|
|
129
|
+
maximum?: number;
|
|
130
|
+
exclusiveMaximum?: boolean;
|
|
131
|
+
minimum?: number;
|
|
132
|
+
exclusiveMinimum?: boolean;
|
|
133
|
+
multipleOf?: number;
|
|
134
|
+
maxItems?: number;
|
|
135
|
+
minItems?: number;
|
|
136
|
+
uniqueItems?: boolean;
|
|
137
|
+
};
|
|
138
|
+
};
|
|
@@ -0,0 +1,88 @@
|
|
|
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 { DocumentOriginFromJSON, DocumentOriginToJSON, } from './DocumentOrigin';
|
|
15
|
+
import { PartTypeFromJSON, PartTypeToJSON, } from './PartType';
|
|
16
|
+
import { DocumentTypeFromJSON, DocumentTypeToJSON, } from './DocumentType';
|
|
17
|
+
import { DocumentVersionResponseFromJSON, DocumentVersionResponseToJSON, } from './DocumentVersionResponse';
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the FolderDocumentResponse interface.
|
|
20
|
+
*/
|
|
21
|
+
export function instanceOfFolderDocumentResponse(value) {
|
|
22
|
+
if (!('pathPartId' in value) || value['pathPartId'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('partType' in value) || value['partType'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('parentId' in value) || value['parentId'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('metadataObjId' in value) || value['metadataObjId'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('tenantId' in value) || value['tenantId'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
return true;
|
|
39
|
+
}
|
|
40
|
+
export function FolderDocumentResponseFromJSON(json) {
|
|
41
|
+
return FolderDocumentResponseFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
export function FolderDocumentResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
44
|
+
if (json == null) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'pathPartId': json['path_part_id'],
|
|
49
|
+
'name': json['name'],
|
|
50
|
+
'partType': PartTypeFromJSON(json['part_type']),
|
|
51
|
+
'parentId': json['parent_id'],
|
|
52
|
+
'metadataObjId': json['metadata_obj_id'],
|
|
53
|
+
'createdAt': (new Date(json['created_at'])),
|
|
54
|
+
'updatedAt': (new Date(json['updated_at'])),
|
|
55
|
+
'folderId': json['folder_id'] == null ? undefined : json['folder_id'],
|
|
56
|
+
'documentId': json['document_id'] == null ? undefined : json['document_id'],
|
|
57
|
+
'documentType': json['document_type'] == null ? undefined : DocumentTypeFromJSON(json['document_type']),
|
|
58
|
+
'documentOrigin': json['document_origin'] == null ? undefined : DocumentOriginFromJSON(json['document_origin']),
|
|
59
|
+
'activeVersionId': json['active_version_id'] == null ? undefined : json['active_version_id'],
|
|
60
|
+
'activeVersion': json['active_version'] == null ? undefined : DocumentVersionResponseFromJSON(json['active_version']),
|
|
61
|
+
'tenantId': json['tenant_id'],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
export function FolderDocumentResponseToJSON(json) {
|
|
65
|
+
return FolderDocumentResponseToJSONTyped(json, false);
|
|
66
|
+
}
|
|
67
|
+
export function FolderDocumentResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
68
|
+
if (value == null) {
|
|
69
|
+
return value;
|
|
70
|
+
}
|
|
71
|
+
return {
|
|
72
|
+
'path_part_id': value['pathPartId'],
|
|
73
|
+
'name': value['name'],
|
|
74
|
+
'part_type': PartTypeToJSON(value['partType']),
|
|
75
|
+
'parent_id': value['parentId'],
|
|
76
|
+
'metadata_obj_id': value['metadataObjId'],
|
|
77
|
+
'created_at': value['createdAt'].toISOString(),
|
|
78
|
+
'updated_at': value['updatedAt'].toISOString(),
|
|
79
|
+
'folder_id': value['folderId'],
|
|
80
|
+
'document_id': value['documentId'],
|
|
81
|
+
'document_type': DocumentTypeToJSON(value['documentType']),
|
|
82
|
+
'document_origin': DocumentOriginToJSON(value['documentOrigin']),
|
|
83
|
+
'active_version_id': value['activeVersionId'],
|
|
84
|
+
'active_version': DocumentVersionResponseToJSON(value['activeVersion']),
|
|
85
|
+
'tenant_id': value['tenantId'],
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
export const FolderDocumentResponsePropertyValidationAttributesMap = {};
|
|
@@ -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,44 @@
|
|
|
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
|
+
* Role of message author in thread.
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export const MessageRole = {
|
|
19
|
+
User: 'USER',
|
|
20
|
+
Assistant: 'ASSISTANT',
|
|
21
|
+
System: 'SYSTEM'
|
|
22
|
+
};
|
|
23
|
+
export function instanceOfMessageRole(value) {
|
|
24
|
+
for (const key in MessageRole) {
|
|
25
|
+
if (Object.prototype.hasOwnProperty.call(MessageRole, key)) {
|
|
26
|
+
if (MessageRole[key] === value) {
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
return false;
|
|
32
|
+
}
|
|
33
|
+
export function MessageRoleFromJSON(json) {
|
|
34
|
+
return MessageRoleFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function MessageRoleFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
export function MessageRoleToJSON(value) {
|
|
40
|
+
return value;
|
|
41
|
+
}
|
|
42
|
+
export function MessageRoleToJSONTyped(value, ignoreDiscriminator) {
|
|
43
|
+
return value;
|
|
44
|
+
}
|
|
@@ -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 { DocumentContentPathPart } from './DocumentContentPathPart';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface PaginatedResponseDocumentContentPathPart
|
|
17
|
+
*/
|
|
18
|
+
export interface PaginatedResponseDocumentContentPathPart {
|
|
19
|
+
/**
|
|
20
|
+
* List of items
|
|
21
|
+
* @type {Array<DocumentContentPathPart>}
|
|
22
|
+
* @memberof PaginatedResponseDocumentContentPathPart
|
|
23
|
+
*/
|
|
24
|
+
items: Array<DocumentContentPathPart>;
|
|
25
|
+
/**
|
|
26
|
+
* Total number of items
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof PaginatedResponseDocumentContentPathPart
|
|
29
|
+
*/
|
|
30
|
+
total: number;
|
|
31
|
+
/**
|
|
32
|
+
* Number of items per page
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof PaginatedResponseDocumentContentPathPart
|
|
35
|
+
*/
|
|
36
|
+
limit: number;
|
|
37
|
+
/**
|
|
38
|
+
* Number of items to skip
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof PaginatedResponseDocumentContentPathPart
|
|
41
|
+
*/
|
|
42
|
+
offset: number;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the PaginatedResponseDocumentContentPathPart interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfPaginatedResponseDocumentContentPathPart(value: object): value is PaginatedResponseDocumentContentPathPart;
|
|
48
|
+
export declare function PaginatedResponseDocumentContentPathPartFromJSON(json: any): PaginatedResponseDocumentContentPathPart;
|
|
49
|
+
export declare function PaginatedResponseDocumentContentPathPartFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedResponseDocumentContentPathPart;
|
|
50
|
+
export declare function PaginatedResponseDocumentContentPathPartToJSON(json: any): PaginatedResponseDocumentContentPathPart;
|
|
51
|
+
export declare function PaginatedResponseDocumentContentPathPartToJSONTyped(value?: PaginatedResponseDocumentContentPathPart | null, ignoreDiscriminator?: boolean): any;
|
|
52
|
+
export declare const PaginatedResponseDocumentContentPathPartPropertyValidationAttributesMap: {
|
|
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 { DocumentContentPathPartFromJSON, DocumentContentPathPartToJSON, } from './DocumentContentPathPart';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the PaginatedResponseDocumentContentPathPart interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfPaginatedResponseDocumentContentPathPart(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 PaginatedResponseDocumentContentPathPartFromJSON(json) {
|
|
30
|
+
return PaginatedResponseDocumentContentPathPartFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
export function PaginatedResponseDocumentContentPathPartFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'items': (json['items'].map(DocumentContentPathPartFromJSON)),
|
|
38
|
+
'total': json['total'],
|
|
39
|
+
'limit': json['limit'],
|
|
40
|
+
'offset': json['offset'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
export function PaginatedResponseDocumentContentPathPartToJSON(json) {
|
|
44
|
+
return PaginatedResponseDocumentContentPathPartToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
export function PaginatedResponseDocumentContentPathPartToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'items': (value['items'].map(DocumentContentPathPartToJSON)),
|
|
52
|
+
'total': value['total'],
|
|
53
|
+
'limit': value['limit'],
|
|
54
|
+
'offset': value['offset'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
export const PaginatedResponseDocumentContentPathPartPropertyValidationAttributesMap = {
|
|
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 { FolderDocumentResponse } from './FolderDocumentResponse';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface PaginatedResponseFolderDocumentResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface PaginatedResponseFolderDocumentResponse {
|
|
19
|
+
/**
|
|
20
|
+
* List of items
|
|
21
|
+
* @type {Array<FolderDocumentResponse>}
|
|
22
|
+
* @memberof PaginatedResponseFolderDocumentResponse
|
|
23
|
+
*/
|
|
24
|
+
items: Array<FolderDocumentResponse>;
|
|
25
|
+
/**
|
|
26
|
+
* Total number of items
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof PaginatedResponseFolderDocumentResponse
|
|
29
|
+
*/
|
|
30
|
+
total: number;
|
|
31
|
+
/**
|
|
32
|
+
* Number of items per page
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof PaginatedResponseFolderDocumentResponse
|
|
35
|
+
*/
|
|
36
|
+
limit: number;
|
|
37
|
+
/**
|
|
38
|
+
* Number of items to skip
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof PaginatedResponseFolderDocumentResponse
|
|
41
|
+
*/
|
|
42
|
+
offset: number;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the PaginatedResponseFolderDocumentResponse interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfPaginatedResponseFolderDocumentResponse(value: object): value is PaginatedResponseFolderDocumentResponse;
|
|
48
|
+
export declare function PaginatedResponseFolderDocumentResponseFromJSON(json: any): PaginatedResponseFolderDocumentResponse;
|
|
49
|
+
export declare function PaginatedResponseFolderDocumentResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedResponseFolderDocumentResponse;
|
|
50
|
+
export declare function PaginatedResponseFolderDocumentResponseToJSON(json: any): PaginatedResponseFolderDocumentResponse;
|
|
51
|
+
export declare function PaginatedResponseFolderDocumentResponseToJSONTyped(value?: PaginatedResponseFolderDocumentResponse | null, ignoreDiscriminator?: boolean): any;
|
|
52
|
+
export declare const PaginatedResponseFolderDocumentResponsePropertyValidationAttributesMap: {
|
|
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 { FolderDocumentResponseFromJSON, FolderDocumentResponseToJSON, } from './FolderDocumentResponse';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the PaginatedResponseFolderDocumentResponse interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfPaginatedResponseFolderDocumentResponse(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 PaginatedResponseFolderDocumentResponseFromJSON(json) {
|
|
30
|
+
return PaginatedResponseFolderDocumentResponseFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
export function PaginatedResponseFolderDocumentResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'items': (json['items'].map(FolderDocumentResponseFromJSON)),
|
|
38
|
+
'total': json['total'],
|
|
39
|
+
'limit': json['limit'],
|
|
40
|
+
'offset': json['offset'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
export function PaginatedResponseFolderDocumentResponseToJSON(json) {
|
|
44
|
+
return PaginatedResponseFolderDocumentResponseToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
export function PaginatedResponseFolderDocumentResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'items': (value['items'].map(FolderDocumentResponseToJSON)),
|
|
52
|
+
'total': value['total'],
|
|
53
|
+
'limit': value['limit'],
|
|
54
|
+
'offset': value['offset'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
export const PaginatedResponseFolderDocumentResponsePropertyValidationAttributesMap = {
|
|
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 { ThreadMessageResponse } from './ThreadMessageResponse';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface PaginatedResponseThreadMessageResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface PaginatedResponseThreadMessageResponse {
|
|
19
|
+
/**
|
|
20
|
+
* List of items
|
|
21
|
+
* @type {Array<ThreadMessageResponse>}
|
|
22
|
+
* @memberof PaginatedResponseThreadMessageResponse
|
|
23
|
+
*/
|
|
24
|
+
items: Array<ThreadMessageResponse>;
|
|
25
|
+
/**
|
|
26
|
+
* Total number of items
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof PaginatedResponseThreadMessageResponse
|
|
29
|
+
*/
|
|
30
|
+
total: number;
|
|
31
|
+
/**
|
|
32
|
+
* Number of items per page
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof PaginatedResponseThreadMessageResponse
|
|
35
|
+
*/
|
|
36
|
+
limit: number;
|
|
37
|
+
/**
|
|
38
|
+
* Number of items to skip
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof PaginatedResponseThreadMessageResponse
|
|
41
|
+
*/
|
|
42
|
+
offset: number;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the PaginatedResponseThreadMessageResponse interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfPaginatedResponseThreadMessageResponse(value: object): value is PaginatedResponseThreadMessageResponse;
|
|
48
|
+
export declare function PaginatedResponseThreadMessageResponseFromJSON(json: any): PaginatedResponseThreadMessageResponse;
|
|
49
|
+
export declare function PaginatedResponseThreadMessageResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedResponseThreadMessageResponse;
|
|
50
|
+
export declare function PaginatedResponseThreadMessageResponseToJSON(json: any): PaginatedResponseThreadMessageResponse;
|
|
51
|
+
export declare function PaginatedResponseThreadMessageResponseToJSONTyped(value?: PaginatedResponseThreadMessageResponse | null, ignoreDiscriminator?: boolean): any;
|
|
52
|
+
export declare const PaginatedResponseThreadMessageResponsePropertyValidationAttributesMap: {
|
|
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
|
+
};
|