@knowledge-stack/ksapi 1.23.5 → 1.24.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 +122 -4
- package/.openapi-generator/VERSION +1 -1
- package/README.md +274 -28
- package/dist/apis/AuthApi.d.ts +117 -0
- package/dist/apis/AuthApi.js +137 -47
- package/dist/apis/ChunkLineagesApi.d.ts +38 -0
- package/dist/apis/ChunkLineagesApi.js +42 -15
- package/dist/apis/ChunksApi.d.ts +78 -4
- package/dist/apis/ChunksApi.js +85 -31
- package/dist/apis/DefaultApi.d.ts +20 -0
- package/dist/apis/DefaultApi.js +28 -10
- package/dist/apis/DocumentVersionsApi.d.ts +99 -9
- package/dist/apis/DocumentVersionsApi.js +100 -37
- package/dist/apis/DocumentsApi.d.ts +80 -0
- package/dist/apis/DocumentsApi.js +84 -30
- package/dist/apis/FoldersApi.d.ts +92 -9
- package/dist/apis/FoldersApi.js +86 -32
- package/dist/apis/InvitesApi.d.ts +51 -0
- package/dist/apis/InvitesApi.js +56 -20
- package/dist/apis/PathPartsApi.d.ts +54 -0
- package/dist/apis/PathPartsApi.js +56 -20
- package/dist/apis/SectionsApi.d.ts +49 -0
- package/dist/apis/SectionsApi.js +56 -20
- package/dist/apis/TagsApi.d.ts +62 -0
- package/dist/apis/TagsApi.js +70 -25
- package/dist/apis/TenantsApi.d.ts +103 -0
- package/dist/apis/TenantsApi.js +112 -40
- package/dist/apis/ThreadMessagesApi.d.ts +41 -0
- package/dist/apis/ThreadMessagesApi.js +42 -15
- package/dist/apis/ThreadsApi.d.ts +77 -0
- package/dist/apis/ThreadsApi.js +84 -30
- package/dist/apis/UserPermissionsApi.d.ts +54 -0
- package/dist/apis/UserPermissionsApi.js +56 -20
- package/dist/apis/UsersApi.d.ts +23 -0
- package/dist/apis/UsersApi.js +28 -10
- package/dist/apis/WorkflowsApi.d.ts +38 -0
- package/dist/apis/WorkflowsApi.js +42 -15
- package/dist/esm/apis/AuthApi.d.ts +117 -0
- package/dist/esm/apis/AuthApi.js +137 -47
- package/dist/esm/apis/ChunkLineagesApi.d.ts +38 -0
- package/dist/esm/apis/ChunkLineagesApi.js +42 -15
- package/dist/esm/apis/ChunksApi.d.ts +78 -4
- package/dist/esm/apis/ChunksApi.js +85 -31
- package/dist/esm/apis/DefaultApi.d.ts +20 -0
- package/dist/esm/apis/DefaultApi.js +28 -10
- package/dist/esm/apis/DocumentVersionsApi.d.ts +99 -9
- package/dist/esm/apis/DocumentVersionsApi.js +101 -38
- package/dist/esm/apis/DocumentsApi.d.ts +80 -0
- package/dist/esm/apis/DocumentsApi.js +84 -30
- package/dist/esm/apis/FoldersApi.d.ts +92 -9
- package/dist/esm/apis/FoldersApi.js +87 -33
- package/dist/esm/apis/InvitesApi.d.ts +51 -0
- package/dist/esm/apis/InvitesApi.js +56 -20
- package/dist/esm/apis/PathPartsApi.d.ts +54 -0
- package/dist/esm/apis/PathPartsApi.js +56 -20
- package/dist/esm/apis/SectionsApi.d.ts +49 -0
- package/dist/esm/apis/SectionsApi.js +56 -20
- package/dist/esm/apis/TagsApi.d.ts +62 -0
- package/dist/esm/apis/TagsApi.js +70 -25
- package/dist/esm/apis/TenantsApi.d.ts +103 -0
- package/dist/esm/apis/TenantsApi.js +112 -40
- package/dist/esm/apis/ThreadMessagesApi.d.ts +41 -0
- package/dist/esm/apis/ThreadMessagesApi.js +42 -15
- package/dist/esm/apis/ThreadsApi.d.ts +77 -0
- package/dist/esm/apis/ThreadsApi.js +84 -30
- package/dist/esm/apis/UserPermissionsApi.d.ts +54 -0
- package/dist/esm/apis/UserPermissionsApi.js +56 -20
- package/dist/esm/apis/UsersApi.d.ts +23 -0
- package/dist/esm/apis/UsersApi.js +28 -10
- package/dist/esm/apis/WorkflowsApi.d.ts +38 -0
- package/dist/esm/apis/WorkflowsApi.js +42 -15
- package/dist/esm/models/{DocumentContentPathPart.d.ts → ChunkContentItem.d.ts} +37 -40
- package/dist/esm/models/{DocumentContentPathPart.js → ChunkContentItem.js} +17 -16
- package/dist/esm/models/DocumentResponse.d.ts +13 -0
- package/dist/esm/models/DocumentResponse.js +8 -0
- package/dist/esm/models/FolderResponse.d.ts +13 -0
- package/dist/esm/models/FolderResponse.js +8 -0
- package/dist/esm/models/FolderResponseOrDocumentResponse.d.ts +27 -0
- package/dist/esm/models/FolderResponseOrDocumentResponse.js +47 -0
- package/dist/esm/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator.d.ts +66 -0
- package/dist/esm/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator.js +70 -0
- package/dist/esm/models/PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator.d.ts +66 -0
- package/dist/esm/models/PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator.js +70 -0
- package/dist/esm/models/SectionContentItem.d.ts +114 -0
- package/dist/esm/models/SectionContentItem.js +86 -0
- package/dist/esm/models/SectionContentItemOrChunkContentItem.d.ts +27 -0
- package/dist/esm/models/SectionContentItemOrChunkContentItem.js +47 -0
- package/dist/esm/models/index.d.ts +6 -4
- package/dist/esm/models/index.js +6 -4
- package/dist/models/{DocumentContentPathPart.d.ts → ChunkContentItem.d.ts} +37 -40
- package/dist/models/{DocumentContentPathPart.js → ChunkContentItem.js} +23 -22
- package/dist/models/DocumentResponse.d.ts +13 -0
- package/dist/models/DocumentResponse.js +9 -1
- package/dist/models/FolderResponse.d.ts +13 -0
- package/dist/models/FolderResponse.js +9 -1
- package/dist/models/FolderResponseOrDocumentResponse.d.ts +27 -0
- package/dist/models/FolderResponseOrDocumentResponse.js +53 -0
- package/dist/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator.d.ts +66 -0
- package/dist/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator.js +78 -0
- package/dist/models/PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator.d.ts +66 -0
- package/dist/models/PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator.js +78 -0
- package/dist/models/SectionContentItem.d.ts +114 -0
- package/dist/models/SectionContentItem.js +94 -0
- package/dist/models/SectionContentItemOrChunkContentItem.d.ts +27 -0
- package/dist/models/SectionContentItemOrChunkContentItem.js +53 -0
- package/dist/models/index.d.ts +6 -4
- package/dist/models/index.js +6 -4
- package/docs/AuthApi.md +707 -0
- package/docs/BulkTagRequest.md +35 -0
- package/docs/ChunkContentItem.md +59 -0
- package/docs/ChunkLineageResponse.md +41 -0
- package/docs/ChunkLineagesApi.md +230 -0
- package/docs/ChunkMetadataInput.md +37 -0
- package/docs/ChunkMetadataOutput.md +37 -0
- package/docs/ChunkResponse.md +63 -0
- package/docs/ChunkSearchRequest.md +47 -0
- package/docs/ChunkType.md +33 -0
- package/docs/ChunksApi.md +446 -0
- package/docs/ClearVersionContentsResponse.md +35 -0
- package/docs/CreateChunkLineageRequest.md +37 -0
- package/docs/CreateChunkRequest.md +43 -0
- package/docs/CreateDocumentRequest.md +41 -0
- package/docs/CreateFolderRequest.md +37 -0
- package/docs/CreatePasswordUserRequest.md +36 -0
- package/docs/CreatePermissionRequest.md +40 -0
- package/docs/CreateSectionRequest.md +41 -0
- package/docs/CreateTagRequest.md +39 -0
- package/docs/CreateTenantRequest.md +37 -0
- package/docs/CreateThreadMessageRequest.md +37 -0
- package/docs/CreateThreadRequest.md +37 -0
- package/docs/DefaultApi.md +128 -0
- package/docs/DocumentOrigin.md +33 -0
- package/docs/DocumentResponse.md +63 -0
- package/docs/DocumentType.md +33 -0
- package/docs/DocumentVersionMetadata.md +47 -0
- package/docs/DocumentVersionMetadataUpdate.md +47 -0
- package/docs/DocumentVersionResponse.md +57 -0
- package/docs/DocumentVersionsApi.md +530 -0
- package/docs/DocumentsApi.md +464 -0
- package/docs/EmailSentResponse.md +34 -0
- package/docs/EmailVerificationRequest.md +34 -0
- package/docs/EmbeddingModel.md +33 -0
- package/docs/FolderResponse.md +55 -0
- package/docs/FolderResponseOrDocumentResponse.md +62 -0
- package/docs/FoldersApi.md +473 -0
- package/docs/HTTPValidationError.md +34 -0
- package/docs/HealthCheckResponse.md +36 -0
- package/docs/IdpType.md +33 -0
- package/docs/IngestDocumentResponse.md +39 -0
- package/docs/InviteResponse.md +53 -0
- package/docs/InviteStatus.md +32 -0
- package/docs/InviteUserRequest.md +38 -0
- package/docs/InvitesApi.md +305 -0
- package/docs/LineageEdgeResponse.md +37 -0
- package/docs/LineageGraphResponse.md +37 -0
- package/docs/LineageNodeResponse.md +47 -0
- package/docs/LocationInner.md +32 -0
- package/docs/MessageRole.md +33 -0
- package/docs/OAuth2Config.md +41 -0
- package/docs/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator.md +40 -0
- package/docs/PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator.md +40 -0
- package/docs/PaginatedResponseDocumentResponse.md +40 -0
- package/docs/PaginatedResponseDocumentVersionResponse.md +40 -0
- package/docs/PaginatedResponseFolderResponse.md +40 -0
- package/docs/PaginatedResponseInviteResponse.md +40 -0
- package/docs/PaginatedResponsePathPartResponse.md +40 -0
- package/docs/PaginatedResponsePermissionResponse.md +40 -0
- package/docs/PaginatedResponseTagResponse.md +40 -0
- package/docs/PaginatedResponseTenantResponse.md +40 -0
- package/docs/PaginatedResponseTenantUserResponse.md +40 -0
- package/docs/PaginatedResponseThreadMessageResponse.md +40 -0
- package/docs/PaginatedResponseThreadResponse.md +40 -0
- package/docs/PaginatedResponseWorkflowSummaryResponse.md +40 -0
- package/docs/PartType.md +33 -0
- package/docs/PasswordResetRequest.md +36 -0
- package/docs/PasswordResetWithTokenRequest.md +36 -0
- package/docs/PathOrder.md +33 -0
- package/docs/PathPartResponse.md +53 -0
- package/docs/PathPartTagsResponse.md +35 -0
- package/docs/PathPartsApi.md +314 -0
- package/docs/PermissionCapability.md +33 -0
- package/docs/PermissionResponse.md +48 -0
- package/docs/PipelineState.md +45 -0
- package/docs/PipelineStatus.md +33 -0
- package/docs/Polygon.md +41 -0
- package/docs/PolygonReference.md +37 -0
- package/docs/RootResponse.md +36 -0
- package/docs/ScoredChunkResponse.md +65 -0
- package/docs/SectionContentItem.md +55 -0
- package/docs/SectionContentItemOrChunkContentItem.md +60 -0
- package/docs/SectionResponse.md +57 -0
- package/docs/SectionsApi.md +299 -0
- package/docs/SignInRequest.md +38 -0
- package/docs/TagResponse.md +47 -0
- package/docs/TagsApi.md +374 -0
- package/docs/TenantResponse.md +39 -0
- package/docs/TenantUserEditRequest.md +35 -0
- package/docs/TenantUserResponse.md +43 -0
- package/docs/TenantUserRole.md +33 -0
- package/docs/TenantsApi.md +605 -0
- package/docs/ThreadMessageResponse.md +53 -0
- package/docs/ThreadMessagesApi.md +239 -0
- package/docs/ThreadResponse.md +49 -0
- package/docs/ThreadsApi.md +455 -0
- package/docs/UpdateChunkContentRequest.md +37 -0
- package/docs/UpdateChunkMetadataRequest.md +35 -0
- package/docs/UpdateDocumentRequest.md +39 -0
- package/docs/UpdateFolderRequest.md +37 -0
- package/docs/UpdatePermissionRequest.md +36 -0
- package/docs/UpdateSectionRequest.md +41 -0
- package/docs/UpdateTagRequest.md +39 -0
- package/docs/UpdateTenantRequest.md +37 -0
- package/docs/UpdateThreadRequest.md +37 -0
- package/docs/UpdateUserRequest.md +34 -0
- package/docs/UserPermissionsApi.md +314 -0
- package/docs/UserResponse.md +44 -0
- package/docs/UsersApi.md +149 -0
- package/docs/ValidationError.md +42 -0
- package/docs/WorkflowAction.md +33 -0
- package/docs/WorkflowActionResponse.md +39 -0
- package/docs/WorkflowDetailResponse.md +63 -0
- package/docs/WorkflowSummaryResponse.md +49 -0
- package/docs/WorkflowsApi.md +230 -0
- package/package.json +1 -1
- package/src/apis/AuthApi.ts +214 -47
- package/src/apis/ChunkLineagesApi.ts +68 -15
- package/src/apis/ChunksApi.ts +137 -33
- package/src/apis/DefaultApi.ts +40 -10
- package/src/apis/DocumentVersionsApi.ts +170 -45
- package/src/apis/DocumentsApi.ts +140 -30
- package/src/apis/FoldersApi.ts +153 -40
- package/src/apis/InvitesApi.ts +91 -20
- package/src/apis/PathPartsApi.ts +94 -20
- package/src/apis/SectionsApi.ts +89 -20
- package/src/apis/TagsApi.ts +112 -25
- package/src/apis/TenantsApi.ts +183 -40
- package/src/apis/ThreadMessagesApi.ts +71 -15
- package/src/apis/ThreadsApi.ts +137 -30
- package/src/apis/UserPermissionsApi.ts +94 -20
- package/src/apis/UsersApi.ts +43 -10
- package/src/apis/WorkflowsApi.ts +68 -15
- package/src/models/{DocumentContentPathPart.ts → ChunkContentItem.ts} +42 -53
- package/src/models/DocumentResponse.ts +16 -0
- package/src/models/FolderResponse.ts +18 -0
- package/src/models/FolderResponseOrDocumentResponse.ts +72 -0
- package/src/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator.ts +130 -0
- package/src/models/PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator.ts +130 -0
- package/src/models/SectionContentItem.ts +181 -0
- package/src/models/SectionContentItemOrChunkContentItem.ts +72 -0
- package/src/models/index.ts +6 -4
- package/dist/esm/models/FolderDocumentResponse.d.ts +0 -157
- package/dist/esm/models/FolderDocumentResponse.js +0 -99
- package/dist/esm/models/PaginatedResponseDocumentContentPathPart.d.ts +0 -66
- package/dist/esm/models/PaginatedResponseDocumentContentPathPart.js +0 -70
- package/dist/esm/models/PaginatedResponseFolderDocumentResponse.d.ts +0 -66
- package/dist/esm/models/PaginatedResponseFolderDocumentResponse.js +0 -70
- package/dist/models/FolderDocumentResponse.d.ts +0 -157
- package/dist/models/FolderDocumentResponse.js +0 -107
- package/dist/models/PaginatedResponseDocumentContentPathPart.d.ts +0 -66
- package/dist/models/PaginatedResponseDocumentContentPathPart.js +0 -78
- package/dist/models/PaginatedResponseFolderDocumentResponse.d.ts +0 -66
- package/dist/models/PaginatedResponseFolderDocumentResponse.js +0 -78
- package/src/models/FolderDocumentResponse.ts +0 -267
- package/src/models/PaginatedResponseDocumentContentPathPart.ts +0 -130
- package/src/models/PaginatedResponseFolderDocumentResponse.ts +0 -130
package/src/models/PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator.ts
ADDED
|
@@ -0,0 +1,130 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { SectionContentItemOrChunkContentItem } from './SectionContentItemOrChunkContentItem';
|
|
17
|
+
import {
|
|
18
|
+
SectionContentItemOrChunkContentItemFromJSON,
|
|
19
|
+
SectionContentItemOrChunkContentItemFromJSONTyped,
|
|
20
|
+
SectionContentItemOrChunkContentItemToJSON,
|
|
21
|
+
SectionContentItemOrChunkContentItemToJSONTyped,
|
|
22
|
+
} from './SectionContentItemOrChunkContentItem';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator
|
|
28
|
+
*/
|
|
29
|
+
export interface PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator {
|
|
30
|
+
/**
|
|
31
|
+
* List of items
|
|
32
|
+
* @type {Array<SectionContentItemOrChunkContentItem>}
|
|
33
|
+
* @memberof PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator
|
|
34
|
+
*/
|
|
35
|
+
items: Array<SectionContentItemOrChunkContentItem>;
|
|
36
|
+
/**
|
|
37
|
+
* Total number of items
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator
|
|
40
|
+
*/
|
|
41
|
+
total: number;
|
|
42
|
+
/**
|
|
43
|
+
* Number of items per page
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator
|
|
46
|
+
*/
|
|
47
|
+
limit: number;
|
|
48
|
+
/**
|
|
49
|
+
* Number of items to skip
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator
|
|
52
|
+
*/
|
|
53
|
+
offset: number;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator interface.
|
|
58
|
+
*/
|
|
59
|
+
export function instanceOfPaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator(value: object): value is PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator {
|
|
60
|
+
if (!('items' in value) || value['items'] === undefined) return false;
|
|
61
|
+
if (!('total' in value) || value['total'] === undefined) return false;
|
|
62
|
+
if (!('limit' in value) || value['limit'] === undefined) return false;
|
|
63
|
+
if (!('offset' in value) || value['offset'] === undefined) return false;
|
|
64
|
+
return true;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminatorFromJSON(json: any): PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator {
|
|
68
|
+
return PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminatorFromJSONTyped(json, false);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminatorFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator {
|
|
72
|
+
if (json == null) {
|
|
73
|
+
return json;
|
|
74
|
+
}
|
|
75
|
+
return {
|
|
76
|
+
|
|
77
|
+
'items': ((json['items'] as Array<any>).map(SectionContentItemOrChunkContentItemFromJSON)),
|
|
78
|
+
'total': json['total'],
|
|
79
|
+
'limit': json['limit'],
|
|
80
|
+
'offset': json['offset'],
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminatorToJSON(json: any): PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator {
|
|
85
|
+
return PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminatorToJSONTyped(json, false);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminatorToJSONTyped(value?: PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator | null, ignoreDiscriminator: boolean = false): any {
|
|
89
|
+
if (value == null) {
|
|
90
|
+
return value;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
return {
|
|
94
|
+
|
|
95
|
+
'items': ((value['items'] as Array<any>).map(SectionContentItemOrChunkContentItemToJSON)),
|
|
96
|
+
'total': value['total'],
|
|
97
|
+
'limit': value['limit'],
|
|
98
|
+
'offset': value['offset'],
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export const PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminatorPropertyValidationAttributesMap: {
|
|
103
|
+
[property: string]: {
|
|
104
|
+
maxLength?: number,
|
|
105
|
+
minLength?: number,
|
|
106
|
+
pattern?: string,
|
|
107
|
+
maximum?: number,
|
|
108
|
+
exclusiveMaximum?: boolean,
|
|
109
|
+
minimum?: number,
|
|
110
|
+
exclusiveMinimum?: boolean,
|
|
111
|
+
multipleOf?: number,
|
|
112
|
+
maxItems?: number,
|
|
113
|
+
minItems?: number,
|
|
114
|
+
uniqueItems?: boolean
|
|
115
|
+
}
|
|
116
|
+
} = {
|
|
117
|
+
total: {
|
|
118
|
+
minimum: 0,
|
|
119
|
+
exclusiveMinimum: false,
|
|
120
|
+
},
|
|
121
|
+
limit: {
|
|
122
|
+
minimum: 1,
|
|
123
|
+
exclusiveMinimum: false,
|
|
124
|
+
},
|
|
125
|
+
offset: {
|
|
126
|
+
minimum: 0,
|
|
127
|
+
exclusiveMinimum: false,
|
|
128
|
+
},
|
|
129
|
+
}
|
|
130
|
+
|
|
@@ -0,0 +1,181 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
* Response model for a section item in document version contents.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface SectionContentItem
|
|
20
|
+
*/
|
|
21
|
+
export interface SectionContentItem {
|
|
22
|
+
/**
|
|
23
|
+
* Path part type
|
|
24
|
+
* @type {SectionContentItemPartTypeEnum}
|
|
25
|
+
* @memberof SectionContentItem
|
|
26
|
+
*/
|
|
27
|
+
partType?: SectionContentItemPartTypeEnum;
|
|
28
|
+
/**
|
|
29
|
+
* PathPart ID
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof SectionContentItem
|
|
32
|
+
*/
|
|
33
|
+
pathPartId: string;
|
|
34
|
+
/**
|
|
35
|
+
* PathPart name
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof SectionContentItem
|
|
38
|
+
*/
|
|
39
|
+
name: string;
|
|
40
|
+
/**
|
|
41
|
+
* Parent PathPart ID
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof SectionContentItem
|
|
44
|
+
*/
|
|
45
|
+
parentPathId: string;
|
|
46
|
+
/**
|
|
47
|
+
* Section ID
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof SectionContentItem
|
|
50
|
+
*/
|
|
51
|
+
metadataObjId: string;
|
|
52
|
+
/**
|
|
53
|
+
* Depth relative to document version root
|
|
54
|
+
* @type {number}
|
|
55
|
+
* @memberof SectionContentItem
|
|
56
|
+
*/
|
|
57
|
+
depth: number;
|
|
58
|
+
/**
|
|
59
|
+
* Section page number
|
|
60
|
+
* @type {number}
|
|
61
|
+
* @memberof SectionContentItem
|
|
62
|
+
*/
|
|
63
|
+
pageNumber?: number | null;
|
|
64
|
+
/**
|
|
65
|
+
* Full materialized path from root
|
|
66
|
+
* @type {string}
|
|
67
|
+
* @memberof SectionContentItem
|
|
68
|
+
*/
|
|
69
|
+
materializedPath: string;
|
|
70
|
+
/**
|
|
71
|
+
* Whether this item is system-managed
|
|
72
|
+
* @type {boolean}
|
|
73
|
+
* @memberof SectionContentItem
|
|
74
|
+
*/
|
|
75
|
+
systemManaged: boolean;
|
|
76
|
+
/**
|
|
77
|
+
* Creation timestamp
|
|
78
|
+
* @type {Date}
|
|
79
|
+
* @memberof SectionContentItem
|
|
80
|
+
*/
|
|
81
|
+
createdAt: Date;
|
|
82
|
+
/**
|
|
83
|
+
* Last update timestamp
|
|
84
|
+
* @type {Date}
|
|
85
|
+
* @memberof SectionContentItem
|
|
86
|
+
*/
|
|
87
|
+
updatedAt: Date;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* @export
|
|
93
|
+
*/
|
|
94
|
+
export const SectionContentItemPartTypeEnum = {
|
|
95
|
+
Section: 'SECTION'
|
|
96
|
+
} as const;
|
|
97
|
+
export type SectionContentItemPartTypeEnum = typeof SectionContentItemPartTypeEnum[keyof typeof SectionContentItemPartTypeEnum];
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* Check if a given object implements the SectionContentItem interface.
|
|
102
|
+
*/
|
|
103
|
+
export function instanceOfSectionContentItem(value: object): value is SectionContentItem {
|
|
104
|
+
if (!('pathPartId' in value) || value['pathPartId'] === undefined) return false;
|
|
105
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
106
|
+
if (!('parentPathId' in value) || value['parentPathId'] === undefined) return false;
|
|
107
|
+
if (!('metadataObjId' in value) || value['metadataObjId'] === undefined) return false;
|
|
108
|
+
if (!('depth' in value) || value['depth'] === undefined) return false;
|
|
109
|
+
if (!('materializedPath' in value) || value['materializedPath'] === undefined) return false;
|
|
110
|
+
if (!('systemManaged' in value) || value['systemManaged'] === undefined) return false;
|
|
111
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
112
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
|
|
113
|
+
return true;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
export function SectionContentItemFromJSON(json: any): SectionContentItem {
|
|
117
|
+
return SectionContentItemFromJSONTyped(json, false);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export function SectionContentItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): SectionContentItem {
|
|
121
|
+
if (json == null) {
|
|
122
|
+
return json;
|
|
123
|
+
}
|
|
124
|
+
return {
|
|
125
|
+
|
|
126
|
+
'partType': json['part_type'] == null ? undefined : json['part_type'],
|
|
127
|
+
'pathPartId': json['path_part_id'],
|
|
128
|
+
'name': json['name'],
|
|
129
|
+
'parentPathId': json['parent_path_id'],
|
|
130
|
+
'metadataObjId': json['metadata_obj_id'],
|
|
131
|
+
'depth': json['depth'],
|
|
132
|
+
'pageNumber': json['page_number'] == null ? undefined : json['page_number'],
|
|
133
|
+
'materializedPath': json['materialized_path'],
|
|
134
|
+
'systemManaged': json['system_managed'],
|
|
135
|
+
'createdAt': (new Date(json['created_at'])),
|
|
136
|
+
'updatedAt': (new Date(json['updated_at'])),
|
|
137
|
+
};
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
export function SectionContentItemToJSON(json: any): SectionContentItem {
|
|
141
|
+
return SectionContentItemToJSONTyped(json, false);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
export function SectionContentItemToJSONTyped(value?: SectionContentItem | null, ignoreDiscriminator: boolean = false): any {
|
|
145
|
+
if (value == null) {
|
|
146
|
+
return value;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
return {
|
|
150
|
+
|
|
151
|
+
'part_type': value['partType'],
|
|
152
|
+
'path_part_id': value['pathPartId'],
|
|
153
|
+
'name': value['name'],
|
|
154
|
+
'parent_path_id': value['parentPathId'],
|
|
155
|
+
'metadata_obj_id': value['metadataObjId'],
|
|
156
|
+
'depth': value['depth'],
|
|
157
|
+
'page_number': value['pageNumber'],
|
|
158
|
+
'materialized_path': value['materializedPath'],
|
|
159
|
+
'system_managed': value['systemManaged'],
|
|
160
|
+
'created_at': value['createdAt'].toISOString(),
|
|
161
|
+
'updated_at': value['updatedAt'].toISOString(),
|
|
162
|
+
};
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
export const SectionContentItemPropertyValidationAttributesMap: {
|
|
166
|
+
[property: string]: {
|
|
167
|
+
maxLength?: number,
|
|
168
|
+
minLength?: number,
|
|
169
|
+
pattern?: string,
|
|
170
|
+
maximum?: number,
|
|
171
|
+
exclusiveMaximum?: boolean,
|
|
172
|
+
minimum?: number,
|
|
173
|
+
exclusiveMinimum?: boolean,
|
|
174
|
+
multipleOf?: number,
|
|
175
|
+
maxItems?: number,
|
|
176
|
+
minItems?: number,
|
|
177
|
+
uniqueItems?: boolean
|
|
178
|
+
}
|
|
179
|
+
} = {
|
|
180
|
+
}
|
|
181
|
+
|
|
@@ -0,0 +1,72 @@
|
|
|
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
|
+
import type { ChunkContentItem } from './ChunkContentItem';
|
|
16
|
+
import {
|
|
17
|
+
instanceOfChunkContentItem,
|
|
18
|
+
ChunkContentItemFromJSON,
|
|
19
|
+
ChunkContentItemFromJSONTyped,
|
|
20
|
+
ChunkContentItemToJSON,
|
|
21
|
+
} from './ChunkContentItem';
|
|
22
|
+
import type { SectionContentItem } from './SectionContentItem';
|
|
23
|
+
import {
|
|
24
|
+
instanceOfSectionContentItem,
|
|
25
|
+
SectionContentItemFromJSON,
|
|
26
|
+
SectionContentItemFromJSONTyped,
|
|
27
|
+
SectionContentItemToJSON,
|
|
28
|
+
} from './SectionContentItem';
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* @type SectionContentItemOrChunkContentItem
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
*/
|
|
35
|
+
export type SectionContentItemOrChunkContentItem = { partType: 'CHUNK' } & ChunkContentItem | { partType: 'SECTION' } & SectionContentItem;
|
|
36
|
+
|
|
37
|
+
export function SectionContentItemOrChunkContentItemFromJSON(json: any): SectionContentItemOrChunkContentItem {
|
|
38
|
+
return SectionContentItemOrChunkContentItemFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function SectionContentItemOrChunkContentItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): SectionContentItemOrChunkContentItem {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
switch (json['part_type']) {
|
|
46
|
+
case 'CHUNK':
|
|
47
|
+
return Object.assign({}, ChunkContentItemFromJSONTyped(json, true), { partType: 'CHUNK' } as const);
|
|
48
|
+
case 'SECTION':
|
|
49
|
+
return Object.assign({}, SectionContentItemFromJSONTyped(json, true), { partType: 'SECTION' } as const);
|
|
50
|
+
default:
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function SectionContentItemOrChunkContentItemToJSON(json: any): any {
|
|
56
|
+
return SectionContentItemOrChunkContentItemToJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function SectionContentItemOrChunkContentItemToJSONTyped(value?: SectionContentItemOrChunkContentItem | null, ignoreDiscriminator: boolean = false): any {
|
|
60
|
+
if (value == null) {
|
|
61
|
+
return value;
|
|
62
|
+
}
|
|
63
|
+
switch (value['partType']) {
|
|
64
|
+
case 'CHUNK':
|
|
65
|
+
return Object.assign({}, ChunkContentItemToJSON(value), { partType: 'CHUNK' } as const);
|
|
66
|
+
case 'SECTION':
|
|
67
|
+
return Object.assign({}, SectionContentItemToJSON(value), { partType: 'SECTION' } as const);
|
|
68
|
+
default:
|
|
69
|
+
return value;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export * from './BulkTagRequest';
|
|
4
|
+
export * from './ChunkContentItem';
|
|
4
5
|
export * from './ChunkLineageResponse';
|
|
5
6
|
export * from './ChunkMetadataInput';
|
|
6
7
|
export * from './ChunkMetadataOutput';
|
|
@@ -19,7 +20,6 @@ export * from './CreateTagRequest';
|
|
|
19
20
|
export * from './CreateTenantRequest';
|
|
20
21
|
export * from './CreateThreadMessageRequest';
|
|
21
22
|
export * from './CreateThreadRequest';
|
|
22
|
-
export * from './DocumentContentPathPart';
|
|
23
23
|
export * from './DocumentOrigin';
|
|
24
24
|
export * from './DocumentResponse';
|
|
25
25
|
export * from './DocumentType';
|
|
@@ -29,8 +29,8 @@ export * from './DocumentVersionResponse';
|
|
|
29
29
|
export * from './EmailSentResponse';
|
|
30
30
|
export * from './EmailVerificationRequest';
|
|
31
31
|
export * from './EmbeddingModel';
|
|
32
|
-
export * from './FolderDocumentResponse';
|
|
33
32
|
export * from './FolderResponse';
|
|
33
|
+
export * from './FolderResponseOrDocumentResponse';
|
|
34
34
|
export * from './HTTPValidationError';
|
|
35
35
|
export * from './HealthCheckResponse';
|
|
36
36
|
export * from './IdpType';
|
|
@@ -44,10 +44,10 @@ export * from './LineageNodeResponse';
|
|
|
44
44
|
export * from './LocationInner';
|
|
45
45
|
export * from './MessageRole';
|
|
46
46
|
export * from './OAuth2Config';
|
|
47
|
-
export * from './
|
|
47
|
+
export * from './PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator';
|
|
48
|
+
export * from './PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator';
|
|
48
49
|
export * from './PaginatedResponseDocumentResponse';
|
|
49
50
|
export * from './PaginatedResponseDocumentVersionResponse';
|
|
50
|
-
export * from './PaginatedResponseFolderDocumentResponse';
|
|
51
51
|
export * from './PaginatedResponseFolderResponse';
|
|
52
52
|
export * from './PaginatedResponseInviteResponse';
|
|
53
53
|
export * from './PaginatedResponsePathPartResponse';
|
|
@@ -72,6 +72,8 @@ export * from './Polygon';
|
|
|
72
72
|
export * from './PolygonReference';
|
|
73
73
|
export * from './RootResponse';
|
|
74
74
|
export * from './ScoredChunkResponse';
|
|
75
|
+
export * from './SectionContentItem';
|
|
76
|
+
export * from './SectionContentItemOrChunkContentItem';
|
|
75
77
|
export * from './SectionResponse';
|
|
76
78
|
export * from './SignInRequest';
|
|
77
79
|
export * from './TagResponse';
|
|
@@ -1,157 +0,0 @@
|
|
|
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 { TagResponse } from './TagResponse';
|
|
15
|
-
import type { DocumentType } from './DocumentType';
|
|
16
|
-
import type { DocumentVersionResponse } from './DocumentVersionResponse';
|
|
17
|
-
/**
|
|
18
|
-
* Response for folder contents - can be either a Folder or a Document.
|
|
19
|
-
*
|
|
20
|
-
* Inherits PathPart fields from PathPartResponse and adds type-specific fields.
|
|
21
|
-
*
|
|
22
|
-
* Discriminated union based on part_type:
|
|
23
|
-
* - FOLDER: folder_id is set, document fields are None
|
|
24
|
-
* - DOCUMENT: document_id and document fields are set, folder_id is None
|
|
25
|
-
*
|
|
26
|
-
* Inherited fields from PathPartResponse:
|
|
27
|
-
* - path_part_id, name, part_type, parent_path_id, metadata_obj_id, created_at, updated_at
|
|
28
|
-
* @export
|
|
29
|
-
* @interface FolderDocumentResponse
|
|
30
|
-
*/
|
|
31
|
-
export interface FolderDocumentResponse {
|
|
32
|
-
/**
|
|
33
|
-
* PathPart ID
|
|
34
|
-
* @type {string}
|
|
35
|
-
* @memberof FolderDocumentResponse
|
|
36
|
-
*/
|
|
37
|
-
pathPartId: string;
|
|
38
|
-
/**
|
|
39
|
-
* Item name
|
|
40
|
-
* @type {string}
|
|
41
|
-
* @memberof FolderDocumentResponse
|
|
42
|
-
*/
|
|
43
|
-
name: string;
|
|
44
|
-
/**
|
|
45
|
-
*
|
|
46
|
-
* @type {PartType}
|
|
47
|
-
* @memberof FolderDocumentResponse
|
|
48
|
-
*/
|
|
49
|
-
partType: PartType;
|
|
50
|
-
/**
|
|
51
|
-
* Parent PathPart ID
|
|
52
|
-
* @type {string}
|
|
53
|
-
* @memberof FolderDocumentResponse
|
|
54
|
-
*/
|
|
55
|
-
parentPathId: string | null;
|
|
56
|
-
/**
|
|
57
|
-
* ID of the underlying object
|
|
58
|
-
* @type {string}
|
|
59
|
-
* @memberof FolderDocumentResponse
|
|
60
|
-
*/
|
|
61
|
-
metadataObjId: string | null;
|
|
62
|
-
/**
|
|
63
|
-
* Full materialized path from root
|
|
64
|
-
* @type {string}
|
|
65
|
-
* @memberof FolderDocumentResponse
|
|
66
|
-
*/
|
|
67
|
-
materializedPath: string;
|
|
68
|
-
/**
|
|
69
|
-
* Whether this path part is system-managed
|
|
70
|
-
* @type {boolean}
|
|
71
|
-
* @memberof FolderDocumentResponse
|
|
72
|
-
*/
|
|
73
|
-
systemManaged: boolean;
|
|
74
|
-
/**
|
|
75
|
-
* Tags attached to this path part
|
|
76
|
-
* @type {Array<TagResponse>}
|
|
77
|
-
* @memberof FolderDocumentResponse
|
|
78
|
-
*/
|
|
79
|
-
tags?: Array<TagResponse> | null;
|
|
80
|
-
/**
|
|
81
|
-
* Creation timestamp
|
|
82
|
-
* @type {Date}
|
|
83
|
-
* @memberof FolderDocumentResponse
|
|
84
|
-
*/
|
|
85
|
-
createdAt: Date;
|
|
86
|
-
/**
|
|
87
|
-
* Last update timestamp
|
|
88
|
-
* @type {Date}
|
|
89
|
-
* @memberof FolderDocumentResponse
|
|
90
|
-
*/
|
|
91
|
-
updatedAt: Date;
|
|
92
|
-
/**
|
|
93
|
-
* Folder ID (present for folders)
|
|
94
|
-
* @type {string}
|
|
95
|
-
* @memberof FolderDocumentResponse
|
|
96
|
-
*/
|
|
97
|
-
folderId?: string | null;
|
|
98
|
-
/**
|
|
99
|
-
* Document ID (present for documents)
|
|
100
|
-
* @type {string}
|
|
101
|
-
* @memberof FolderDocumentResponse
|
|
102
|
-
*/
|
|
103
|
-
documentId?: string | null;
|
|
104
|
-
/**
|
|
105
|
-
*
|
|
106
|
-
* @type {DocumentType}
|
|
107
|
-
* @memberof FolderDocumentResponse
|
|
108
|
-
*/
|
|
109
|
-
documentType?: DocumentType;
|
|
110
|
-
/**
|
|
111
|
-
*
|
|
112
|
-
* @type {DocumentOrigin}
|
|
113
|
-
* @memberof FolderDocumentResponse
|
|
114
|
-
*/
|
|
115
|
-
documentOrigin?: DocumentOrigin;
|
|
116
|
-
/**
|
|
117
|
-
* Active version ID (present for documents)
|
|
118
|
-
* @type {string}
|
|
119
|
-
* @memberof FolderDocumentResponse
|
|
120
|
-
*/
|
|
121
|
-
activeVersionId?: string | null;
|
|
122
|
-
/**
|
|
123
|
-
*
|
|
124
|
-
* @type {DocumentVersionResponse}
|
|
125
|
-
* @memberof FolderDocumentResponse
|
|
126
|
-
*/
|
|
127
|
-
activeVersion?: DocumentVersionResponse;
|
|
128
|
-
/**
|
|
129
|
-
* Tenant ID
|
|
130
|
-
* @type {string}
|
|
131
|
-
* @memberof FolderDocumentResponse
|
|
132
|
-
*/
|
|
133
|
-
tenantId: string;
|
|
134
|
-
}
|
|
135
|
-
/**
|
|
136
|
-
* Check if a given object implements the FolderDocumentResponse interface.
|
|
137
|
-
*/
|
|
138
|
-
export declare function instanceOfFolderDocumentResponse(value: object): value is FolderDocumentResponse;
|
|
139
|
-
export declare function FolderDocumentResponseFromJSON(json: any): FolderDocumentResponse;
|
|
140
|
-
export declare function FolderDocumentResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): FolderDocumentResponse;
|
|
141
|
-
export declare function FolderDocumentResponseToJSON(json: any): FolderDocumentResponse;
|
|
142
|
-
export declare function FolderDocumentResponseToJSONTyped(value?: FolderDocumentResponse | null, ignoreDiscriminator?: boolean): any;
|
|
143
|
-
export declare const FolderDocumentResponsePropertyValidationAttributesMap: {
|
|
144
|
-
[property: string]: {
|
|
145
|
-
maxLength?: number;
|
|
146
|
-
minLength?: number;
|
|
147
|
-
pattern?: string;
|
|
148
|
-
maximum?: number;
|
|
149
|
-
exclusiveMaximum?: boolean;
|
|
150
|
-
minimum?: number;
|
|
151
|
-
exclusiveMinimum?: boolean;
|
|
152
|
-
multipleOf?: number;
|
|
153
|
-
maxItems?: number;
|
|
154
|
-
minItems?: number;
|
|
155
|
-
uniqueItems?: boolean;
|
|
156
|
-
};
|
|
157
|
-
};
|
|
@@ -1,99 +0,0 @@
|
|
|
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 { TagResponseFromJSON, TagResponseToJSON, } from './TagResponse';
|
|
17
|
-
import { DocumentTypeFromJSON, DocumentTypeToJSON, } from './DocumentType';
|
|
18
|
-
import { DocumentVersionResponseFromJSON, DocumentVersionResponseToJSON, } from './DocumentVersionResponse';
|
|
19
|
-
/**
|
|
20
|
-
* Check if a given object implements the FolderDocumentResponse interface.
|
|
21
|
-
*/
|
|
22
|
-
export function instanceOfFolderDocumentResponse(value) {
|
|
23
|
-
if (!('pathPartId' in value) || value['pathPartId'] === undefined)
|
|
24
|
-
return false;
|
|
25
|
-
if (!('name' in value) || value['name'] === undefined)
|
|
26
|
-
return false;
|
|
27
|
-
if (!('partType' in value) || value['partType'] === undefined)
|
|
28
|
-
return false;
|
|
29
|
-
if (!('parentPathId' in value) || value['parentPathId'] === undefined)
|
|
30
|
-
return false;
|
|
31
|
-
if (!('metadataObjId' in value) || value['metadataObjId'] === undefined)
|
|
32
|
-
return false;
|
|
33
|
-
if (!('materializedPath' in value) || value['materializedPath'] === undefined)
|
|
34
|
-
return false;
|
|
35
|
-
if (!('systemManaged' in value) || value['systemManaged'] === undefined)
|
|
36
|
-
return false;
|
|
37
|
-
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
38
|
-
return false;
|
|
39
|
-
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
40
|
-
return false;
|
|
41
|
-
if (!('tenantId' in value) || value['tenantId'] === undefined)
|
|
42
|
-
return false;
|
|
43
|
-
return true;
|
|
44
|
-
}
|
|
45
|
-
export function FolderDocumentResponseFromJSON(json) {
|
|
46
|
-
return FolderDocumentResponseFromJSONTyped(json, false);
|
|
47
|
-
}
|
|
48
|
-
export function FolderDocumentResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
49
|
-
if (json == null) {
|
|
50
|
-
return json;
|
|
51
|
-
}
|
|
52
|
-
return {
|
|
53
|
-
'pathPartId': json['path_part_id'],
|
|
54
|
-
'name': json['name'],
|
|
55
|
-
'partType': PartTypeFromJSON(json['part_type']),
|
|
56
|
-
'parentPathId': json['parent_path_id'],
|
|
57
|
-
'metadataObjId': json['metadata_obj_id'],
|
|
58
|
-
'materializedPath': json['materialized_path'],
|
|
59
|
-
'systemManaged': json['system_managed'],
|
|
60
|
-
'tags': json['tags'] == null ? undefined : (json['tags'].map(TagResponseFromJSON)),
|
|
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 : DocumentTypeFromJSON(json['document_type']),
|
|
66
|
-
'documentOrigin': json['document_origin'] == null ? undefined : DocumentOriginFromJSON(json['document_origin']),
|
|
67
|
-
'activeVersionId': json['active_version_id'] == null ? undefined : json['active_version_id'],
|
|
68
|
-
'activeVersion': json['active_version'] == null ? undefined : DocumentVersionResponseFromJSON(json['active_version']),
|
|
69
|
-
'tenantId': json['tenant_id'],
|
|
70
|
-
};
|
|
71
|
-
}
|
|
72
|
-
export function FolderDocumentResponseToJSON(json) {
|
|
73
|
-
return FolderDocumentResponseToJSONTyped(json, false);
|
|
74
|
-
}
|
|
75
|
-
export 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': PartTypeToJSON(value['partType']),
|
|
83
|
-
'parent_path_id': value['parentPathId'],
|
|
84
|
-
'metadata_obj_id': value['metadataObjId'],
|
|
85
|
-
'materialized_path': value['materializedPath'],
|
|
86
|
-
'system_managed': value['systemManaged'],
|
|
87
|
-
'tags': value['tags'] == null ? undefined : (value['tags'].map(TagResponseToJSON)),
|
|
88
|
-
'created_at': value['createdAt'].toISOString(),
|
|
89
|
-
'updated_at': value['updatedAt'].toISOString(),
|
|
90
|
-
'folder_id': value['folderId'],
|
|
91
|
-
'document_id': value['documentId'],
|
|
92
|
-
'document_type': DocumentTypeToJSON(value['documentType']),
|
|
93
|
-
'document_origin': DocumentOriginToJSON(value['documentOrigin']),
|
|
94
|
-
'active_version_id': value['activeVersionId'],
|
|
95
|
-
'active_version': DocumentVersionResponseToJSON(value['activeVersion']),
|
|
96
|
-
'tenant_id': value['tenantId'],
|
|
97
|
-
};
|
|
98
|
-
}
|
|
99
|
-
export const FolderDocumentResponsePropertyValidationAttributesMap = {};
|