@knowledge-stack/ksapi 1.8.0 → 1.9.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 (43) hide show
  1. package/.openapi-generator/FILES +4 -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/esm/apis/DocumentVersionsApi.d.ts +36 -1
  10. package/dist/esm/apis/DocumentVersionsApi.js +42 -1
  11. package/dist/esm/apis/FoldersApi.d.ts +38 -1
  12. package/dist/esm/apis/FoldersApi.js +45 -1
  13. package/dist/esm/apis/PathPartsApi.d.ts +4 -6
  14. package/dist/esm/apis/PathPartsApi.js +2 -5
  15. package/dist/esm/models/DocumentContentPathPart.d.ts +119 -0
  16. package/dist/esm/models/DocumentContentPathPart.js +83 -0
  17. package/dist/esm/models/FolderDocumentResponse.d.ts +138 -0
  18. package/dist/esm/models/FolderDocumentResponse.js +88 -0
  19. package/dist/esm/models/PaginatedResponseDocumentContentPathPart.d.ts +66 -0
  20. package/dist/esm/models/PaginatedResponseDocumentContentPathPart.js +70 -0
  21. package/dist/esm/models/PaginatedResponseFolderDocumentResponse.d.ts +66 -0
  22. package/dist/esm/models/PaginatedResponseFolderDocumentResponse.js +70 -0
  23. package/dist/esm/models/index.d.ts +4 -0
  24. package/dist/esm/models/index.js +4 -0
  25. package/dist/models/DocumentContentPathPart.d.ts +119 -0
  26. package/dist/models/DocumentContentPathPart.js +91 -0
  27. package/dist/models/FolderDocumentResponse.d.ts +138 -0
  28. package/dist/models/FolderDocumentResponse.js +96 -0
  29. package/dist/models/PaginatedResponseDocumentContentPathPart.d.ts +66 -0
  30. package/dist/models/PaginatedResponseDocumentContentPathPart.js +78 -0
  31. package/dist/models/PaginatedResponseFolderDocumentResponse.d.ts +66 -0
  32. package/dist/models/PaginatedResponseFolderDocumentResponse.js +78 -0
  33. package/dist/models/index.d.ts +4 -0
  34. package/dist/models/index.js +4 -0
  35. package/package.json +1 -1
  36. package/src/apis/DocumentVersionsApi.ts +82 -0
  37. package/src/apis/FoldersApi.ts +88 -0
  38. package/src/apis/PathPartsApi.ts +4 -10
  39. package/src/models/DocumentContentPathPart.ts +205 -0
  40. package/src/models/FolderDocumentResponse.ts +234 -0
  41. package/src/models/PaginatedResponseDocumentContentPathPart.ts +130 -0
  42. package/src/models/PaginatedResponseFolderDocumentResponse.ts +130 -0
  43. package/src/models/index.ts +4 -0
@@ -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
+ };
@@ -8,12 +8,14 @@ export * from './CreateFolderRequest';
8
8
  export * from './CreatePasswordUserRequest';
9
9
  export * from './CreateSectionRequest';
10
10
  export * from './CreateTenantRequest';
11
+ export * from './DocumentContentPathPart';
11
12
  export * from './DocumentOrigin';
12
13
  export * from './DocumentResponse';
13
14
  export * from './DocumentType';
14
15
  export * from './DocumentVersionResponse';
15
16
  export * from './EmailSentResponse';
16
17
  export * from './EmailVerificationRequest';
18
+ export * from './FolderDocumentResponse';
17
19
  export * from './FolderResponse';
18
20
  export * from './HTTPValidationError';
19
21
  export * from './HealthCheckResponse';
@@ -22,8 +24,10 @@ export * from './InviteResponse';
22
24
  export * from './InviteStatus';
23
25
  export * from './InviteUserRequest';
24
26
  export * from './OAuth2Config';
27
+ export * from './PaginatedResponseDocumentContentPathPart';
25
28
  export * from './PaginatedResponseDocumentResponse';
26
29
  export * from './PaginatedResponseDocumentVersionResponse';
30
+ export * from './PaginatedResponseFolderDocumentResponse';
27
31
  export * from './PaginatedResponseFolderResponse';
28
32
  export * from './PaginatedResponseInviteResponse';
29
33
  export * from './PaginatedResponsePathPartResponse';
@@ -10,12 +10,14 @@ export * from './CreateFolderRequest';
10
10
  export * from './CreatePasswordUserRequest';
11
11
  export * from './CreateSectionRequest';
12
12
  export * from './CreateTenantRequest';
13
+ export * from './DocumentContentPathPart';
13
14
  export * from './DocumentOrigin';
14
15
  export * from './DocumentResponse';
15
16
  export * from './DocumentType';
16
17
  export * from './DocumentVersionResponse';
17
18
  export * from './EmailSentResponse';
18
19
  export * from './EmailVerificationRequest';
20
+ export * from './FolderDocumentResponse';
19
21
  export * from './FolderResponse';
20
22
  export * from './HTTPValidationError';
21
23
  export * from './HealthCheckResponse';
@@ -24,8 +26,10 @@ export * from './InviteResponse';
24
26
  export * from './InviteStatus';
25
27
  export * from './InviteUserRequest';
26
28
  export * from './OAuth2Config';
29
+ export * from './PaginatedResponseDocumentContentPathPart';
27
30
  export * from './PaginatedResponseDocumentResponse';
28
31
  export * from './PaginatedResponseDocumentVersionResponse';
32
+ export * from './PaginatedResponseFolderDocumentResponse';
29
33
  export * from './PaginatedResponseFolderResponse';
30
34
  export * from './PaginatedResponseInviteResponse';
31
35
  export * from './PaginatedResponsePathPartResponse';
@@ -0,0 +1,119 @@
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 { PartType } from './PartType';
13
+ import type { ChunkMetadataOutput } from './ChunkMetadataOutput';
14
+ import type { ChunkType } from './ChunkType';
15
+ /**
16
+ * Response model for a single item in the document version contents list.
17
+ *
18
+ * Represents a section or chunk with enriched data (content, metadata)
19
+ * returned in depth-first logical order.
20
+ * @export
21
+ * @interface DocumentContentPathPart
22
+ */
23
+ export interface DocumentContentPathPart {
24
+ /**
25
+ * PathPart ID
26
+ * @type {string}
27
+ * @memberof DocumentContentPathPart
28
+ */
29
+ pathPartId: string;
30
+ /**
31
+ * PathPart name
32
+ * @type {string}
33
+ * @memberof DocumentContentPathPart
34
+ */
35
+ name: string;
36
+ /**
37
+ * SECTION or CHUNK
38
+ * @type {PartType}
39
+ * @memberof DocumentContentPathPart
40
+ */
41
+ partType: PartType;
42
+ /**
43
+ * Parent PathPart ID
44
+ * @type {string}
45
+ * @memberof DocumentContentPathPart
46
+ */
47
+ parentId: string;
48
+ /**
49
+ * Section ID or Chunk ID
50
+ * @type {string}
51
+ * @memberof DocumentContentPathPart
52
+ */
53
+ metadataObjId: string;
54
+ /**
55
+ * Depth relative to document version root
56
+ * @type {number}
57
+ * @memberof DocumentContentPathPart
58
+ */
59
+ depth: number;
60
+ /**
61
+ * Chunk content (None for sections)
62
+ * @type {string}
63
+ * @memberof DocumentContentPathPart
64
+ */
65
+ content?: string;
66
+ /**
67
+ * Chunk type (None for sections)
68
+ * @type {ChunkType}
69
+ * @memberof DocumentContentPathPart
70
+ */
71
+ chunkType?: ChunkType;
72
+ /**
73
+ * Chunk metadata (None for sections)
74
+ * @type {ChunkMetadataOutput}
75
+ * @memberof DocumentContentPathPart
76
+ */
77
+ chunkMetadata?: ChunkMetadataOutput;
78
+ /**
79
+ * Section page number (None for chunks)
80
+ * @type {number}
81
+ * @memberof DocumentContentPathPart
82
+ */
83
+ pageNumber?: number;
84
+ /**
85
+ * Creation timestamp
86
+ * @type {Date}
87
+ * @memberof DocumentContentPathPart
88
+ */
89
+ createdAt: Date;
90
+ /**
91
+ * Last update timestamp
92
+ * @type {Date}
93
+ * @memberof DocumentContentPathPart
94
+ */
95
+ updatedAt: Date;
96
+ }
97
+ /**
98
+ * Check if a given object implements the DocumentContentPathPart interface.
99
+ */
100
+ export declare function instanceOfDocumentContentPathPart(value: object): value is DocumentContentPathPart;
101
+ export declare function DocumentContentPathPartFromJSON(json: any): DocumentContentPathPart;
102
+ export declare function DocumentContentPathPartFromJSONTyped(json: any, ignoreDiscriminator: boolean): DocumentContentPathPart;
103
+ export declare function DocumentContentPathPartToJSON(json: any): DocumentContentPathPart;
104
+ export declare function DocumentContentPathPartToJSONTyped(value?: DocumentContentPathPart | null, ignoreDiscriminator?: boolean): any;
105
+ export declare const DocumentContentPathPartPropertyValidationAttributesMap: {
106
+ [property: string]: {
107
+ maxLength?: number;
108
+ minLength?: number;
109
+ pattern?: string;
110
+ maximum?: number;
111
+ exclusiveMaximum?: boolean;
112
+ minimum?: number;
113
+ exclusiveMinimum?: boolean;
114
+ multipleOf?: number;
115
+ maxItems?: number;
116
+ minItems?: number;
117
+ uniqueItems?: boolean;
118
+ };
119
+ };
@@ -0,0 +1,91 @@
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.DocumentContentPathPartPropertyValidationAttributesMap = void 0;
17
+ exports.instanceOfDocumentContentPathPart = instanceOfDocumentContentPathPart;
18
+ exports.DocumentContentPathPartFromJSON = DocumentContentPathPartFromJSON;
19
+ exports.DocumentContentPathPartFromJSONTyped = DocumentContentPathPartFromJSONTyped;
20
+ exports.DocumentContentPathPartToJSON = DocumentContentPathPartToJSON;
21
+ exports.DocumentContentPathPartToJSONTyped = DocumentContentPathPartToJSONTyped;
22
+ const PartType_1 = require("./PartType");
23
+ const ChunkMetadataOutput_1 = require("./ChunkMetadataOutput");
24
+ const ChunkType_1 = require("./ChunkType");
25
+ /**
26
+ * Check if a given object implements the DocumentContentPathPart interface.
27
+ */
28
+ function instanceOfDocumentContentPathPart(value) {
29
+ if (!('pathPartId' in value) || value['pathPartId'] === undefined)
30
+ return false;
31
+ if (!('name' in value) || value['name'] === undefined)
32
+ return false;
33
+ if (!('partType' in value) || value['partType'] === undefined)
34
+ return false;
35
+ if (!('parentId' in value) || value['parentId'] === undefined)
36
+ return false;
37
+ if (!('metadataObjId' in value) || value['metadataObjId'] === undefined)
38
+ return false;
39
+ if (!('depth' in value) || value['depth'] === undefined)
40
+ return false;
41
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
42
+ return false;
43
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined)
44
+ return false;
45
+ return true;
46
+ }
47
+ function DocumentContentPathPartFromJSON(json) {
48
+ return DocumentContentPathPartFromJSONTyped(json, false);
49
+ }
50
+ function DocumentContentPathPartFromJSONTyped(json, ignoreDiscriminator) {
51
+ if (json == null) {
52
+ return json;
53
+ }
54
+ return {
55
+ 'pathPartId': json['path_part_id'],
56
+ 'name': json['name'],
57
+ 'partType': (0, PartType_1.PartTypeFromJSON)(json['part_type']),
58
+ 'parentId': json['parent_id'],
59
+ 'metadataObjId': json['metadata_obj_id'],
60
+ 'depth': json['depth'],
61
+ 'content': json['content'] == null ? undefined : json['content'],
62
+ 'chunkType': json['chunk_type'] == null ? undefined : (0, ChunkType_1.ChunkTypeFromJSON)(json['chunk_type']),
63
+ 'chunkMetadata': json['chunk_metadata'] == null ? undefined : (0, ChunkMetadataOutput_1.ChunkMetadataOutputFromJSON)(json['chunk_metadata']),
64
+ 'pageNumber': json['page_number'] == null ? undefined : json['page_number'],
65
+ 'createdAt': (new Date(json['created_at'])),
66
+ 'updatedAt': (new Date(json['updated_at'])),
67
+ };
68
+ }
69
+ function DocumentContentPathPartToJSON(json) {
70
+ return DocumentContentPathPartToJSONTyped(json, false);
71
+ }
72
+ function DocumentContentPathPartToJSONTyped(value, ignoreDiscriminator = false) {
73
+ if (value == null) {
74
+ return value;
75
+ }
76
+ return {
77
+ 'path_part_id': value['pathPartId'],
78
+ 'name': value['name'],
79
+ 'part_type': (0, PartType_1.PartTypeToJSON)(value['partType']),
80
+ 'parent_id': value['parentId'],
81
+ 'metadata_obj_id': value['metadataObjId'],
82
+ 'depth': value['depth'],
83
+ 'content': value['content'],
84
+ 'chunk_type': (0, ChunkType_1.ChunkTypeToJSON)(value['chunkType']),
85
+ 'chunk_metadata': (0, ChunkMetadataOutput_1.ChunkMetadataOutputToJSON)(value['chunkMetadata']),
86
+ 'page_number': value['pageNumber'],
87
+ 'created_at': value['createdAt'].toISOString(),
88
+ 'updated_at': value['updatedAt'].toISOString(),
89
+ };
90
+ }
91
+ exports.DocumentContentPathPartPropertyValidationAttributesMap = {};
@@ -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,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 = {};