@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,96 @@
|
|
|
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.FolderDocumentResponsePropertyValidationAttributesMap = void 0;
|
|
17
|
+
exports.instanceOfFolderDocumentResponse = instanceOfFolderDocumentResponse;
|
|
18
|
+
exports.FolderDocumentResponseFromJSON = FolderDocumentResponseFromJSON;
|
|
19
|
+
exports.FolderDocumentResponseFromJSONTyped = FolderDocumentResponseFromJSONTyped;
|
|
20
|
+
exports.FolderDocumentResponseToJSON = FolderDocumentResponseToJSON;
|
|
21
|
+
exports.FolderDocumentResponseToJSONTyped = FolderDocumentResponseToJSONTyped;
|
|
22
|
+
const DocumentOrigin_1 = require("./DocumentOrigin");
|
|
23
|
+
const PartType_1 = require("./PartType");
|
|
24
|
+
const DocumentType_1 = require("./DocumentType");
|
|
25
|
+
const DocumentVersionResponse_1 = require("./DocumentVersionResponse");
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the FolderDocumentResponse interface.
|
|
28
|
+
*/
|
|
29
|
+
function instanceOfFolderDocumentResponse(value) {
|
|
30
|
+
if (!('pathPartId' in value) || value['pathPartId'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('partType' in value) || value['partType'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('parentId' in value) || value['parentId'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('metadataObjId' in value) || value['metadataObjId'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
if (!('tenantId' in value) || value['tenantId'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
return true;
|
|
47
|
+
}
|
|
48
|
+
function FolderDocumentResponseFromJSON(json) {
|
|
49
|
+
return FolderDocumentResponseFromJSONTyped(json, false);
|
|
50
|
+
}
|
|
51
|
+
function FolderDocumentResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
52
|
+
if (json == null) {
|
|
53
|
+
return json;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
'pathPartId': json['path_part_id'],
|
|
57
|
+
'name': json['name'],
|
|
58
|
+
'partType': (0, PartType_1.PartTypeFromJSON)(json['part_type']),
|
|
59
|
+
'parentId': json['parent_id'],
|
|
60
|
+
'metadataObjId': json['metadata_obj_id'],
|
|
61
|
+
'createdAt': (new Date(json['created_at'])),
|
|
62
|
+
'updatedAt': (new Date(json['updated_at'])),
|
|
63
|
+
'folderId': json['folder_id'] == null ? undefined : json['folder_id'],
|
|
64
|
+
'documentId': json['document_id'] == null ? undefined : json['document_id'],
|
|
65
|
+
'documentType': json['document_type'] == null ? undefined : (0, DocumentType_1.DocumentTypeFromJSON)(json['document_type']),
|
|
66
|
+
'documentOrigin': json['document_origin'] == null ? undefined : (0, DocumentOrigin_1.DocumentOriginFromJSON)(json['document_origin']),
|
|
67
|
+
'activeVersionId': json['active_version_id'] == null ? undefined : json['active_version_id'],
|
|
68
|
+
'activeVersion': json['active_version'] == null ? undefined : (0, DocumentVersionResponse_1.DocumentVersionResponseFromJSON)(json['active_version']),
|
|
69
|
+
'tenantId': json['tenant_id'],
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
function FolderDocumentResponseToJSON(json) {
|
|
73
|
+
return FolderDocumentResponseToJSONTyped(json, false);
|
|
74
|
+
}
|
|
75
|
+
function FolderDocumentResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
76
|
+
if (value == null) {
|
|
77
|
+
return value;
|
|
78
|
+
}
|
|
79
|
+
return {
|
|
80
|
+
'path_part_id': value['pathPartId'],
|
|
81
|
+
'name': value['name'],
|
|
82
|
+
'part_type': (0, PartType_1.PartTypeToJSON)(value['partType']),
|
|
83
|
+
'parent_id': value['parentId'],
|
|
84
|
+
'metadata_obj_id': value['metadataObjId'],
|
|
85
|
+
'created_at': value['createdAt'].toISOString(),
|
|
86
|
+
'updated_at': value['updatedAt'].toISOString(),
|
|
87
|
+
'folder_id': value['folderId'],
|
|
88
|
+
'document_id': value['documentId'],
|
|
89
|
+
'document_type': (0, DocumentType_1.DocumentTypeToJSON)(value['documentType']),
|
|
90
|
+
'document_origin': (0, DocumentOrigin_1.DocumentOriginToJSON)(value['documentOrigin']),
|
|
91
|
+
'active_version_id': value['activeVersionId'],
|
|
92
|
+
'active_version': (0, DocumentVersionResponse_1.DocumentVersionResponseToJSON)(value['activeVersion']),
|
|
93
|
+
'tenant_id': value['tenantId'],
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
exports.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,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Knowledge Stack API
|
|
6
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.MessageRole = void 0;
|
|
17
|
+
exports.instanceOfMessageRole = instanceOfMessageRole;
|
|
18
|
+
exports.MessageRoleFromJSON = MessageRoleFromJSON;
|
|
19
|
+
exports.MessageRoleFromJSONTyped = MessageRoleFromJSONTyped;
|
|
20
|
+
exports.MessageRoleToJSON = MessageRoleToJSON;
|
|
21
|
+
exports.MessageRoleToJSONTyped = MessageRoleToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* Role of message author in thread.
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.MessageRole = {
|
|
27
|
+
User: 'USER',
|
|
28
|
+
Assistant: 'ASSISTANT',
|
|
29
|
+
System: 'SYSTEM'
|
|
30
|
+
};
|
|
31
|
+
function instanceOfMessageRole(value) {
|
|
32
|
+
for (const key in exports.MessageRole) {
|
|
33
|
+
if (Object.prototype.hasOwnProperty.call(exports.MessageRole, key)) {
|
|
34
|
+
if (exports.MessageRole[key] === value) {
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
return false;
|
|
40
|
+
}
|
|
41
|
+
function MessageRoleFromJSON(json) {
|
|
42
|
+
return MessageRoleFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function MessageRoleFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
function MessageRoleToJSON(value) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
function MessageRoleToJSONTyped(value, ignoreDiscriminator) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
@@ -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,78 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Knowledge Stack API
|
|
6
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.PaginatedResponseDocumentContentPathPartPropertyValidationAttributesMap = void 0;
|
|
17
|
+
exports.instanceOfPaginatedResponseDocumentContentPathPart = instanceOfPaginatedResponseDocumentContentPathPart;
|
|
18
|
+
exports.PaginatedResponseDocumentContentPathPartFromJSON = PaginatedResponseDocumentContentPathPartFromJSON;
|
|
19
|
+
exports.PaginatedResponseDocumentContentPathPartFromJSONTyped = PaginatedResponseDocumentContentPathPartFromJSONTyped;
|
|
20
|
+
exports.PaginatedResponseDocumentContentPathPartToJSON = PaginatedResponseDocumentContentPathPartToJSON;
|
|
21
|
+
exports.PaginatedResponseDocumentContentPathPartToJSONTyped = PaginatedResponseDocumentContentPathPartToJSONTyped;
|
|
22
|
+
const DocumentContentPathPart_1 = require("./DocumentContentPathPart");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the PaginatedResponseDocumentContentPathPart interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfPaginatedResponseDocumentContentPathPart(value) {
|
|
27
|
+
if (!('items' in value) || value['items'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('total' in value) || value['total'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('limit' in value) || value['limit'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('offset' in value) || value['offset'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
function PaginatedResponseDocumentContentPathPartFromJSON(json) {
|
|
38
|
+
return PaginatedResponseDocumentContentPathPartFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
function PaginatedResponseDocumentContentPathPartFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
+
if (json == null) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'items': (json['items'].map(DocumentContentPathPart_1.DocumentContentPathPartFromJSON)),
|
|
46
|
+
'total': json['total'],
|
|
47
|
+
'limit': json['limit'],
|
|
48
|
+
'offset': json['offset'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
function PaginatedResponseDocumentContentPathPartToJSON(json) {
|
|
52
|
+
return PaginatedResponseDocumentContentPathPartToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
function PaginatedResponseDocumentContentPathPartToJSONTyped(value, ignoreDiscriminator = false) {
|
|
55
|
+
if (value == null) {
|
|
56
|
+
return value;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'items': (value['items'].map(DocumentContentPathPart_1.DocumentContentPathPartToJSON)),
|
|
60
|
+
'total': value['total'],
|
|
61
|
+
'limit': value['limit'],
|
|
62
|
+
'offset': value['offset'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
exports.PaginatedResponseDocumentContentPathPartPropertyValidationAttributesMap = {
|
|
66
|
+
total: {
|
|
67
|
+
minimum: 0,
|
|
68
|
+
exclusiveMinimum: false,
|
|
69
|
+
},
|
|
70
|
+
limit: {
|
|
71
|
+
minimum: 1,
|
|
72
|
+
exclusiveMinimum: false,
|
|
73
|
+
},
|
|
74
|
+
offset: {
|
|
75
|
+
minimum: 0,
|
|
76
|
+
exclusiveMinimum: false,
|
|
77
|
+
},
|
|
78
|
+
};
|
|
@@ -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,78 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Knowledge Stack API
|
|
6
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.PaginatedResponseFolderDocumentResponsePropertyValidationAttributesMap = void 0;
|
|
17
|
+
exports.instanceOfPaginatedResponseFolderDocumentResponse = instanceOfPaginatedResponseFolderDocumentResponse;
|
|
18
|
+
exports.PaginatedResponseFolderDocumentResponseFromJSON = PaginatedResponseFolderDocumentResponseFromJSON;
|
|
19
|
+
exports.PaginatedResponseFolderDocumentResponseFromJSONTyped = PaginatedResponseFolderDocumentResponseFromJSONTyped;
|
|
20
|
+
exports.PaginatedResponseFolderDocumentResponseToJSON = PaginatedResponseFolderDocumentResponseToJSON;
|
|
21
|
+
exports.PaginatedResponseFolderDocumentResponseToJSONTyped = PaginatedResponseFolderDocumentResponseToJSONTyped;
|
|
22
|
+
const FolderDocumentResponse_1 = require("./FolderDocumentResponse");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the PaginatedResponseFolderDocumentResponse interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfPaginatedResponseFolderDocumentResponse(value) {
|
|
27
|
+
if (!('items' in value) || value['items'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('total' in value) || value['total'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('limit' in value) || value['limit'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('offset' in value) || value['offset'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
function PaginatedResponseFolderDocumentResponseFromJSON(json) {
|
|
38
|
+
return PaginatedResponseFolderDocumentResponseFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
function PaginatedResponseFolderDocumentResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
+
if (json == null) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'items': (json['items'].map(FolderDocumentResponse_1.FolderDocumentResponseFromJSON)),
|
|
46
|
+
'total': json['total'],
|
|
47
|
+
'limit': json['limit'],
|
|
48
|
+
'offset': json['offset'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
function PaginatedResponseFolderDocumentResponseToJSON(json) {
|
|
52
|
+
return PaginatedResponseFolderDocumentResponseToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
function PaginatedResponseFolderDocumentResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
55
|
+
if (value == null) {
|
|
56
|
+
return value;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'items': (value['items'].map(FolderDocumentResponse_1.FolderDocumentResponseToJSON)),
|
|
60
|
+
'total': value['total'],
|
|
61
|
+
'limit': value['limit'],
|
|
62
|
+
'offset': value['offset'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
exports.PaginatedResponseFolderDocumentResponsePropertyValidationAttributesMap = {
|
|
66
|
+
total: {
|
|
67
|
+
minimum: 0,
|
|
68
|
+
exclusiveMinimum: false,
|
|
69
|
+
},
|
|
70
|
+
limit: {
|
|
71
|
+
minimum: 1,
|
|
72
|
+
exclusiveMinimum: false,
|
|
73
|
+
},
|
|
74
|
+
offset: {
|
|
75
|
+
minimum: 0,
|
|
76
|
+
exclusiveMinimum: false,
|
|
77
|
+
},
|
|
78
|
+
};
|
|
@@ -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
|
+
};
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Knowledge Stack API
|
|
6
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.PaginatedResponseThreadMessageResponsePropertyValidationAttributesMap = void 0;
|
|
17
|
+
exports.instanceOfPaginatedResponseThreadMessageResponse = instanceOfPaginatedResponseThreadMessageResponse;
|
|
18
|
+
exports.PaginatedResponseThreadMessageResponseFromJSON = PaginatedResponseThreadMessageResponseFromJSON;
|
|
19
|
+
exports.PaginatedResponseThreadMessageResponseFromJSONTyped = PaginatedResponseThreadMessageResponseFromJSONTyped;
|
|
20
|
+
exports.PaginatedResponseThreadMessageResponseToJSON = PaginatedResponseThreadMessageResponseToJSON;
|
|
21
|
+
exports.PaginatedResponseThreadMessageResponseToJSONTyped = PaginatedResponseThreadMessageResponseToJSONTyped;
|
|
22
|
+
const ThreadMessageResponse_1 = require("./ThreadMessageResponse");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the PaginatedResponseThreadMessageResponse interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfPaginatedResponseThreadMessageResponse(value) {
|
|
27
|
+
if (!('items' in value) || value['items'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('total' in value) || value['total'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('limit' in value) || value['limit'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('offset' in value) || value['offset'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
function PaginatedResponseThreadMessageResponseFromJSON(json) {
|
|
38
|
+
return PaginatedResponseThreadMessageResponseFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
function PaginatedResponseThreadMessageResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
+
if (json == null) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'items': (json['items'].map(ThreadMessageResponse_1.ThreadMessageResponseFromJSON)),
|
|
46
|
+
'total': json['total'],
|
|
47
|
+
'limit': json['limit'],
|
|
48
|
+
'offset': json['offset'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
function PaginatedResponseThreadMessageResponseToJSON(json) {
|
|
52
|
+
return PaginatedResponseThreadMessageResponseToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
function PaginatedResponseThreadMessageResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
55
|
+
if (value == null) {
|
|
56
|
+
return value;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'items': (value['items'].map(ThreadMessageResponse_1.ThreadMessageResponseToJSON)),
|
|
60
|
+
'total': value['total'],
|
|
61
|
+
'limit': value['limit'],
|
|
62
|
+
'offset': value['offset'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
exports.PaginatedResponseThreadMessageResponsePropertyValidationAttributesMap = {
|
|
66
|
+
total: {
|
|
67
|
+
minimum: 0,
|
|
68
|
+
exclusiveMinimum: false,
|
|
69
|
+
},
|
|
70
|
+
limit: {
|
|
71
|
+
minimum: 1,
|
|
72
|
+
exclusiveMinimum: false,
|
|
73
|
+
},
|
|
74
|
+
offset: {
|
|
75
|
+
minimum: 0,
|
|
76
|
+
exclusiveMinimum: false,
|
|
77
|
+
},
|
|
78
|
+
};
|
|
@@ -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
|
+
};
|