@knowledge-stack/ksapi 1.23.4 → 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 +125 -6
- 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 +172 -5
- package/dist/apis/TenantsApi.js +179 -31
- 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 +172 -5
- package/dist/esm/apis/TenantsApi.js +180 -32
- 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/ChunkResponse.d.ts +6 -0
- package/dist/esm/models/ChunkResponse.js +2 -0
- 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/InviteResponse.d.ts +7 -0
- package/dist/esm/models/InviteResponse.js +5 -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/PaginatedResponseTenantUserResponse.d.ts +66 -0
- package/dist/esm/models/{PaginatedResponseTenantUserInTenantResponse.js → PaginatedResponseTenantUserResponse.js} +12 -12
- package/dist/esm/models/ScoredChunkResponse.d.ts +6 -0
- package/dist/esm/models/ScoredChunkResponse.js +2 -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/TenantUserEditRequest.d.ts +48 -0
- package/dist/esm/models/TenantUserEditRequest.js +45 -0
- package/dist/esm/models/{TenantUserInTenantResponse.d.ts → TenantUserResponse.d.ts} +19 -13
- package/dist/esm/models/{TenantUserInTenantResponse.js → TenantUserResponse.js} +13 -9
- package/dist/esm/models/index.d.ts +9 -6
- package/dist/esm/models/index.js +9 -6
- package/dist/models/{DocumentContentPathPart.d.ts → ChunkContentItem.d.ts} +37 -40
- package/dist/models/{DocumentContentPathPart.js → ChunkContentItem.js} +23 -22
- package/dist/models/ChunkResponse.d.ts +6 -0
- package/dist/models/ChunkResponse.js +2 -0
- 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/InviteResponse.d.ts +7 -0
- package/dist/models/InviteResponse.js +5 -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/PaginatedResponseTenantUserResponse.d.ts +66 -0
- package/dist/models/PaginatedResponseTenantUserResponse.js +78 -0
- package/dist/models/ScoredChunkResponse.d.ts +6 -0
- package/dist/models/ScoredChunkResponse.js +2 -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/TenantUserEditRequest.d.ts +48 -0
- package/dist/models/TenantUserEditRequest.js +53 -0
- package/dist/models/{TenantUserInTenantResponse.d.ts → TenantUserResponse.d.ts} +19 -13
- package/dist/models/{TenantUserInTenantResponse.js → TenantUserResponse.js} +19 -15
- package/dist/models/index.d.ts +9 -6
- package/dist/models/index.js +9 -6
- 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 +339 -37
- 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/ChunkResponse.ts +8 -0
- package/src/models/DocumentResponse.ts +16 -0
- package/src/models/FolderResponse.ts +18 -0
- package/src/models/FolderResponseOrDocumentResponse.ts +72 -0
- package/src/models/InviteResponse.ts +19 -0
- package/src/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator.ts +130 -0
- package/src/models/PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator.ts +130 -0
- package/src/models/{PaginatedResponseFolderDocumentResponse.ts → PaginatedResponseTenantUserResponse.ts} +25 -25
- package/src/models/ScoredChunkResponse.ts +8 -0
- package/src/models/SectionContentItem.ts +181 -0
- package/src/models/SectionContentItemOrChunkContentItem.ts +72 -0
- package/src/models/TenantUserEditRequest.ts +93 -0
- package/src/models/{TenantUserInTenantResponse.ts → TenantUserResponse.ts} +24 -15
- package/src/models/index.ts +9 -6
- 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/esm/models/PaginatedResponseTenantUserInTenantResponse.d.ts +0 -66
- 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/dist/models/PaginatedResponseTenantUserInTenantResponse.d.ts +0 -66
- package/dist/models/PaginatedResponseTenantUserInTenantResponse.js +0 -78
- package/src/models/FolderDocumentResponse.ts +0 -267
- package/src/models/PaginatedResponseDocumentContentPathPart.ts +0 -130
- package/src/models/PaginatedResponseTenantUserInTenantResponse.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
|
+
|
|
@@ -13,50 +13,50 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
-
import type {
|
|
16
|
+
import type { TenantUserResponse } from './TenantUserResponse';
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
} from './
|
|
18
|
+
TenantUserResponseFromJSON,
|
|
19
|
+
TenantUserResponseFromJSONTyped,
|
|
20
|
+
TenantUserResponseToJSON,
|
|
21
|
+
TenantUserResponseToJSONTyped,
|
|
22
|
+
} from './TenantUserResponse';
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
25
|
*
|
|
26
26
|
* @export
|
|
27
|
-
* @interface
|
|
27
|
+
* @interface PaginatedResponseTenantUserResponse
|
|
28
28
|
*/
|
|
29
|
-
export interface
|
|
29
|
+
export interface PaginatedResponseTenantUserResponse {
|
|
30
30
|
/**
|
|
31
31
|
* List of items
|
|
32
|
-
* @type {Array<
|
|
33
|
-
* @memberof
|
|
32
|
+
* @type {Array<TenantUserResponse>}
|
|
33
|
+
* @memberof PaginatedResponseTenantUserResponse
|
|
34
34
|
*/
|
|
35
|
-
items: Array<
|
|
35
|
+
items: Array<TenantUserResponse>;
|
|
36
36
|
/**
|
|
37
37
|
* Total number of items
|
|
38
38
|
* @type {number}
|
|
39
|
-
* @memberof
|
|
39
|
+
* @memberof PaginatedResponseTenantUserResponse
|
|
40
40
|
*/
|
|
41
41
|
total: number;
|
|
42
42
|
/**
|
|
43
43
|
* Number of items per page
|
|
44
44
|
* @type {number}
|
|
45
|
-
* @memberof
|
|
45
|
+
* @memberof PaginatedResponseTenantUserResponse
|
|
46
46
|
*/
|
|
47
47
|
limit: number;
|
|
48
48
|
/**
|
|
49
49
|
* Number of items to skip
|
|
50
50
|
* @type {number}
|
|
51
|
-
* @memberof
|
|
51
|
+
* @memberof PaginatedResponseTenantUserResponse
|
|
52
52
|
*/
|
|
53
53
|
offset: number;
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
/**
|
|
57
|
-
* Check if a given object implements the
|
|
57
|
+
* Check if a given object implements the PaginatedResponseTenantUserResponse interface.
|
|
58
58
|
*/
|
|
59
|
-
export function
|
|
59
|
+
export function instanceOfPaginatedResponseTenantUserResponse(value: object): value is PaginatedResponseTenantUserResponse {
|
|
60
60
|
if (!('items' in value) || value['items'] === undefined) return false;
|
|
61
61
|
if (!('total' in value) || value['total'] === undefined) return false;
|
|
62
62
|
if (!('limit' in value) || value['limit'] === undefined) return false;
|
|
@@ -64,42 +64,42 @@ export function instanceOfPaginatedResponseFolderDocumentResponse(value: object)
|
|
|
64
64
|
return true;
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
-
export function
|
|
68
|
-
return
|
|
67
|
+
export function PaginatedResponseTenantUserResponseFromJSON(json: any): PaginatedResponseTenantUserResponse {
|
|
68
|
+
return PaginatedResponseTenantUserResponseFromJSONTyped(json, false);
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
-
export function
|
|
71
|
+
export function PaginatedResponseTenantUserResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedResponseTenantUserResponse {
|
|
72
72
|
if (json == null) {
|
|
73
73
|
return json;
|
|
74
74
|
}
|
|
75
75
|
return {
|
|
76
76
|
|
|
77
|
-
'items': ((json['items'] as Array<any>).map(
|
|
77
|
+
'items': ((json['items'] as Array<any>).map(TenantUserResponseFromJSON)),
|
|
78
78
|
'total': json['total'],
|
|
79
79
|
'limit': json['limit'],
|
|
80
80
|
'offset': json['offset'],
|
|
81
81
|
};
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
-
export function
|
|
85
|
-
return
|
|
84
|
+
export function PaginatedResponseTenantUserResponseToJSON(json: any): PaginatedResponseTenantUserResponse {
|
|
85
|
+
return PaginatedResponseTenantUserResponseToJSONTyped(json, false);
|
|
86
86
|
}
|
|
87
87
|
|
|
88
|
-
export function
|
|
88
|
+
export function PaginatedResponseTenantUserResponseToJSONTyped(value?: PaginatedResponseTenantUserResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
89
89
|
if (value == null) {
|
|
90
90
|
return value;
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
return {
|
|
94
94
|
|
|
95
|
-
'items': ((value['items'] as Array<any>).map(
|
|
95
|
+
'items': ((value['items'] as Array<any>).map(TenantUserResponseToJSON)),
|
|
96
96
|
'total': value['total'],
|
|
97
97
|
'limit': value['limit'],
|
|
98
98
|
'offset': value['offset'],
|
|
99
99
|
};
|
|
100
100
|
}
|
|
101
101
|
|
|
102
|
-
export const
|
|
102
|
+
export const PaginatedResponseTenantUserResponsePropertyValidationAttributesMap: {
|
|
103
103
|
[property: string]: {
|
|
104
104
|
maxLength?: number,
|
|
105
105
|
minLength?: number,
|
|
@@ -118,6 +118,12 @@ export interface ScoredChunkResponse {
|
|
|
118
118
|
* @memberof ScoredChunkResponse
|
|
119
119
|
*/
|
|
120
120
|
updatedAt: Date;
|
|
121
|
+
/**
|
|
122
|
+
* Presigned URL to download the chunk's visual asset (6-hour validity)
|
|
123
|
+
* @type {string}
|
|
124
|
+
* @memberof ScoredChunkResponse
|
|
125
|
+
*/
|
|
126
|
+
assetS3Url?: string | null;
|
|
121
127
|
/**
|
|
122
128
|
* Cosine similarity score (1 - cosine_distance)
|
|
123
129
|
* @type {number}
|
|
@@ -172,6 +178,7 @@ export function ScoredChunkResponseFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
172
178
|
'tenantId': json['tenant_id'],
|
|
173
179
|
'createdAt': (new Date(json['created_at'])),
|
|
174
180
|
'updatedAt': (new Date(json['updated_at'])),
|
|
181
|
+
'assetS3Url': json['asset_s3_url'] == null ? undefined : json['asset_s3_url'],
|
|
175
182
|
'score': json['score'],
|
|
176
183
|
};
|
|
177
184
|
}
|
|
@@ -201,6 +208,7 @@ export function ScoredChunkResponseToJSONTyped(value?: ScoredChunkResponse | nul
|
|
|
201
208
|
'tenant_id': value['tenantId'],
|
|
202
209
|
'created_at': value['createdAt'].toISOString(),
|
|
203
210
|
'updated_at': value['updatedAt'].toISOString(),
|
|
211
|
+
'asset_s3_url': value['assetS3Url'],
|
|
204
212
|
'score': value['score'],
|
|
205
213
|
};
|
|
206
214
|
}
|
|
@@ -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
|
+
|
|
@@ -0,0 +1,93 @@
|
|
|
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 { TenantUserRole } from './TenantUserRole';
|
|
17
|
+
import {
|
|
18
|
+
TenantUserRoleFromJSON,
|
|
19
|
+
TenantUserRoleFromJSONTyped,
|
|
20
|
+
TenantUserRoleToJSON,
|
|
21
|
+
TenantUserRoleToJSONTyped,
|
|
22
|
+
} from './TenantUserRole';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Request to update a tenant user's role.
|
|
26
|
+
* @export
|
|
27
|
+
* @interface TenantUserEditRequest
|
|
28
|
+
*/
|
|
29
|
+
export interface TenantUserEditRequest {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {TenantUserRole}
|
|
33
|
+
* @memberof TenantUserEditRequest
|
|
34
|
+
*/
|
|
35
|
+
role: TenantUserRole;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Check if a given object implements the TenantUserEditRequest interface.
|
|
42
|
+
*/
|
|
43
|
+
export function instanceOfTenantUserEditRequest(value: object): value is TenantUserEditRequest {
|
|
44
|
+
if (!('role' in value) || value['role'] === undefined) return false;
|
|
45
|
+
return true;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export function TenantUserEditRequestFromJSON(json: any): TenantUserEditRequest {
|
|
49
|
+
return TenantUserEditRequestFromJSONTyped(json, false);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function TenantUserEditRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): TenantUserEditRequest {
|
|
53
|
+
if (json == null) {
|
|
54
|
+
return json;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
|
|
58
|
+
'role': TenantUserRoleFromJSON(json['role']),
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function TenantUserEditRequestToJSON(json: any): TenantUserEditRequest {
|
|
63
|
+
return TenantUserEditRequestToJSONTyped(json, false);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function TenantUserEditRequestToJSONTyped(value?: TenantUserEditRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
67
|
+
if (value == null) {
|
|
68
|
+
return value;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
return {
|
|
72
|
+
|
|
73
|
+
'role': TenantUserRoleToJSON(value['role']),
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export const TenantUserEditRequestPropertyValidationAttributesMap: {
|
|
78
|
+
[property: string]: {
|
|
79
|
+
maxLength?: number,
|
|
80
|
+
minLength?: number,
|
|
81
|
+
pattern?: string,
|
|
82
|
+
maximum?: number,
|
|
83
|
+
exclusiveMaximum?: boolean,
|
|
84
|
+
minimum?: number,
|
|
85
|
+
exclusiveMinimum?: boolean,
|
|
86
|
+
multipleOf?: number,
|
|
87
|
+
maxItems?: number,
|
|
88
|
+
minItems?: number,
|
|
89
|
+
uniqueItems?: boolean
|
|
90
|
+
}
|
|
91
|
+
} = {
|
|
92
|
+
}
|
|
93
|
+
|