@knowledge-stack/ksapi 1.20.0 → 1.21.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 +3 -2
- package/README.md +2 -2
- package/dist/apis/AuthApi.d.ts +9 -9
- package/dist/apis/ChunkLineagesApi.d.ts +3 -3
- package/dist/apis/ChunksApi.d.ts +6 -6
- package/dist/apis/DocumentVersionsApi.d.ts +8 -8
- package/dist/apis/DocumentsApi.d.ts +12 -12
- package/dist/apis/DocumentsApi.js +2 -2
- package/dist/apis/FoldersApi.d.ts +17 -15
- package/dist/apis/FoldersApi.js +7 -4
- package/dist/apis/InvitesApi.d.ts +5 -5
- package/dist/apis/PathPartsApi.d.ts +70 -8
- package/dist/apis/PathPartsApi.js +76 -2
- package/dist/apis/SectionsApi.d.ts +4 -4
- package/dist/apis/TagsApi.d.ts +6 -68
- package/dist/apis/TagsApi.js +0 -72
- package/dist/apis/TenantsApi.d.ts +6 -6
- package/dist/apis/ThreadMessagesApi.d.ts +4 -4
- package/dist/apis/ThreadsApi.d.ts +6 -6
- package/dist/apis/UserPermissionsApi.d.ts +4 -4
- package/dist/apis/UsersApi.d.ts +2 -2
- package/dist/apis/WorkflowsApi.d.ts +3 -3
- package/dist/esm/apis/AuthApi.d.ts +9 -9
- package/dist/esm/apis/ChunkLineagesApi.d.ts +3 -3
- package/dist/esm/apis/ChunksApi.d.ts +6 -6
- package/dist/esm/apis/DocumentVersionsApi.d.ts +8 -8
- package/dist/esm/apis/DocumentsApi.d.ts +12 -12
- package/dist/esm/apis/DocumentsApi.js +2 -2
- package/dist/esm/apis/FoldersApi.d.ts +17 -15
- package/dist/esm/apis/FoldersApi.js +7 -4
- package/dist/esm/apis/InvitesApi.d.ts +5 -5
- package/dist/esm/apis/PathPartsApi.d.ts +70 -8
- package/dist/esm/apis/PathPartsApi.js +77 -3
- package/dist/esm/apis/SectionsApi.d.ts +4 -4
- package/dist/esm/apis/TagsApi.d.ts +6 -68
- package/dist/esm/apis/TagsApi.js +1 -73
- package/dist/esm/apis/TenantsApi.d.ts +6 -6
- package/dist/esm/apis/ThreadMessagesApi.d.ts +4 -4
- package/dist/esm/apis/ThreadsApi.d.ts +6 -6
- package/dist/esm/apis/UserPermissionsApi.d.ts +4 -4
- package/dist/esm/apis/UsersApi.d.ts +2 -2
- package/dist/esm/apis/WorkflowsApi.d.ts +3 -3
- package/dist/esm/models/BulkTagRequest.d.ts +47 -0
- package/dist/esm/models/BulkTagRequest.js +49 -0
- package/dist/esm/models/ChunkMetadataInput.d.ts +1 -1
- package/dist/esm/models/ChunkMetadataOutput.d.ts +1 -1
- package/dist/esm/models/ChunkResponse.d.ts +4 -4
- package/dist/esm/models/ChunkSearchRequest.d.ts +5 -9
- package/dist/esm/models/ChunkSearchRequest.js +0 -1
- package/dist/esm/models/CreateChunkRequest.d.ts +3 -3
- package/dist/esm/models/CreateDocumentRequest.d.ts +2 -2
- package/dist/esm/models/CreateSectionRequest.d.ts +2 -2
- package/dist/esm/models/CreateTagRequest.d.ts +1 -1
- package/dist/esm/models/CreateTenantRequest.d.ts +1 -1
- package/dist/esm/models/CreateThreadMessageRequest.d.ts +5 -7
- package/dist/esm/models/CreateThreadMessageRequest.js +0 -1
- package/dist/esm/models/CreateThreadRequest.d.ts +1 -1
- package/dist/esm/models/DocumentContentPathPart.d.ts +5 -5
- package/dist/esm/models/DocumentResponse.d.ts +4 -4
- package/dist/esm/models/DocumentVersionMetadata.d.ts +12 -7
- package/dist/esm/models/DocumentVersionMetadata.js +3 -18
- package/dist/esm/models/DocumentVersionMetadataUpdate.d.ts +6 -6
- package/dist/esm/models/DocumentVersionResponse.d.ts +3 -3
- package/dist/esm/models/FolderDocumentResponse.d.ts +16 -9
- package/dist/esm/models/FolderDocumentResponse.js +3 -0
- package/dist/esm/models/FolderResponse.d.ts +1 -1
- package/dist/esm/models/InviteResponse.d.ts +2 -2
- package/dist/esm/models/LineageNodeResponse.d.ts +2 -2
- package/dist/esm/models/LocationInner.d.ts +41 -0
- package/dist/esm/models/LocationInner.js +32 -0
- package/dist/esm/models/OAuth2Config.d.ts +5 -0
- package/dist/esm/models/OAuth2Config.js +3 -12
- package/dist/esm/models/PathPartResponse.d.ts +10 -3
- package/dist/esm/models/PathPartResponse.js +3 -0
- package/dist/esm/models/PathPartTagsResponse.d.ts +48 -0
- package/dist/esm/models/PathPartTagsResponse.js +45 -0
- package/dist/esm/models/PipelineState.d.ts +5 -5
- package/dist/esm/models/PolygonReference.d.ts +1 -1
- package/dist/esm/models/ScoredChunkResponse.d.ts +4 -4
- package/dist/esm/models/SectionResponse.d.ts +3 -3
- package/dist/esm/models/SignInRequest.d.ts +1 -1
- package/dist/esm/models/TagResponse.d.ts +1 -1
- package/dist/esm/models/TenantResponse.d.ts +1 -1
- package/dist/esm/models/TenantUserInTenantResponse.d.ts +2 -2
- package/dist/esm/models/ThreadMessageResponse.d.ts +5 -7
- package/dist/esm/models/ThreadMessageResponse.js +0 -1
- package/dist/esm/models/ThreadResponse.d.ts +1 -1
- package/dist/esm/models/UpdateChunkContentRequest.d.ts +1 -1
- package/dist/esm/models/UpdateChunkMetadataRequest.d.ts +1 -1
- package/dist/esm/models/UpdateDocumentRequest.d.ts +3 -3
- package/dist/esm/models/UpdateFolderRequest.d.ts +2 -2
- package/dist/esm/models/UpdatePermissionRequest.d.ts +1 -1
- package/dist/esm/models/UpdateSectionRequest.d.ts +3 -3
- package/dist/esm/models/UpdateTagRequest.d.ts +3 -3
- package/dist/esm/models/UpdateTenantRequest.d.ts +2 -2
- package/dist/esm/models/UpdateThreadRequest.d.ts +2 -2
- package/dist/esm/models/UserResponse.d.ts +3 -3
- package/dist/esm/models/ValidationError.d.ts +3 -3
- package/dist/esm/models/ValidationError.js +3 -3
- package/dist/esm/models/WorkflowDetailResponse.d.ts +4 -4
- package/dist/esm/models/WorkflowSummaryResponse.d.ts +2 -2
- package/dist/esm/models/index.d.ts +3 -2
- package/dist/esm/models/index.js +3 -2
- package/dist/models/BulkTagRequest.d.ts +47 -0
- package/dist/models/BulkTagRequest.js +57 -0
- package/dist/models/ChunkMetadataInput.d.ts +1 -1
- package/dist/models/ChunkMetadataOutput.d.ts +1 -1
- package/dist/models/ChunkResponse.d.ts +4 -4
- package/dist/models/ChunkSearchRequest.d.ts +5 -9
- package/dist/models/ChunkSearchRequest.js +1 -2
- package/dist/models/CreateChunkRequest.d.ts +3 -3
- package/dist/models/CreateDocumentRequest.d.ts +2 -2
- package/dist/models/CreateSectionRequest.d.ts +2 -2
- package/dist/models/CreateTagRequest.d.ts +1 -1
- package/dist/models/CreateTenantRequest.d.ts +1 -1
- package/dist/models/CreateThreadMessageRequest.d.ts +5 -7
- package/dist/models/CreateThreadMessageRequest.js +1 -2
- package/dist/models/CreateThreadRequest.d.ts +1 -1
- package/dist/models/DocumentContentPathPart.d.ts +5 -5
- package/dist/models/DocumentResponse.d.ts +4 -4
- package/dist/models/DocumentVersionMetadata.d.ts +12 -7
- package/dist/models/DocumentVersionMetadata.js +4 -19
- package/dist/models/DocumentVersionMetadataUpdate.d.ts +6 -6
- package/dist/models/DocumentVersionResponse.d.ts +3 -3
- package/dist/models/FolderDocumentResponse.d.ts +16 -9
- package/dist/models/FolderDocumentResponse.js +3 -0
- package/dist/models/FolderResponse.d.ts +1 -1
- package/dist/models/InviteResponse.d.ts +2 -2
- package/dist/models/LineageNodeResponse.d.ts +2 -2
- package/dist/models/LocationInner.d.ts +41 -0
- package/dist/models/LocationInner.js +40 -0
- package/dist/models/OAuth2Config.d.ts +5 -0
- package/dist/models/OAuth2Config.js +4 -13
- package/dist/models/PathPartResponse.d.ts +10 -3
- package/dist/models/PathPartResponse.js +3 -0
- package/dist/models/PathPartTagsResponse.d.ts +48 -0
- package/dist/models/PathPartTagsResponse.js +53 -0
- package/dist/models/PipelineState.d.ts +5 -5
- package/dist/models/PolygonReference.d.ts +1 -1
- package/dist/models/ScoredChunkResponse.d.ts +4 -4
- package/dist/models/SectionResponse.d.ts +3 -3
- package/dist/models/SignInRequest.d.ts +1 -1
- package/dist/models/TagResponse.d.ts +1 -1
- package/dist/models/TenantResponse.d.ts +1 -1
- package/dist/models/TenantUserInTenantResponse.d.ts +2 -2
- package/dist/models/ThreadMessageResponse.d.ts +5 -7
- package/dist/models/ThreadMessageResponse.js +1 -2
- package/dist/models/ThreadResponse.d.ts +1 -1
- package/dist/models/UpdateChunkContentRequest.d.ts +1 -1
- package/dist/models/UpdateChunkMetadataRequest.d.ts +1 -1
- package/dist/models/UpdateDocumentRequest.d.ts +3 -3
- package/dist/models/UpdateFolderRequest.d.ts +2 -2
- package/dist/models/UpdatePermissionRequest.d.ts +1 -1
- package/dist/models/UpdateSectionRequest.d.ts +3 -3
- package/dist/models/UpdateTagRequest.d.ts +3 -3
- package/dist/models/UpdateTenantRequest.d.ts +2 -2
- package/dist/models/UpdateThreadRequest.d.ts +2 -2
- package/dist/models/UserResponse.d.ts +3 -3
- package/dist/models/ValidationError.d.ts +3 -3
- package/dist/models/ValidationError.js +3 -3
- package/dist/models/WorkflowDetailResponse.d.ts +4 -4
- package/dist/models/WorkflowSummaryResponse.d.ts +2 -2
- package/dist/models/index.d.ts +3 -2
- package/dist/models/index.js +3 -2
- package/package.json +1 -1
- package/src/apis/AuthApi.ts +9 -9
- package/src/apis/ChunkLineagesApi.ts +3 -3
- package/src/apis/ChunksApi.ts +6 -6
- package/src/apis/DocumentVersionsApi.ts +8 -8
- package/src/apis/DocumentsApi.ts +12 -12
- package/src/apis/FoldersApi.ts +21 -15
- package/src/apis/InvitesApi.ts +5 -5
- package/src/apis/PathPartsApi.ts +159 -7
- package/src/apis/SectionsApi.ts +4 -4
- package/src/apis/TagsApi.ts +5 -151
- package/src/apis/TenantsApi.ts +6 -6
- package/src/apis/ThreadMessagesApi.ts +4 -4
- package/src/apis/ThreadsApi.ts +6 -6
- package/src/apis/UserPermissionsApi.ts +4 -4
- package/src/apis/UsersApi.ts +2 -2
- package/src/apis/WorkflowsApi.ts +3 -3
- package/src/models/BulkTagRequest.ts +87 -0
- package/src/models/ChunkMetadataInput.ts +1 -1
- package/src/models/ChunkMetadataOutput.ts +1 -1
- package/src/models/ChunkResponse.ts +4 -4
- package/src/models/ChunkSearchRequest.ts +5 -8
- package/src/models/CreateChunkRequest.ts +3 -3
- package/src/models/CreateDocumentRequest.ts +2 -2
- package/src/models/CreateSectionRequest.ts +2 -2
- package/src/models/CreateTagRequest.ts +1 -1
- package/src/models/CreateTenantRequest.ts +1 -1
- package/src/models/CreateThreadMessageRequest.ts +3 -6
- package/src/models/CreateThreadRequest.ts +1 -1
- package/src/models/DocumentContentPathPart.ts +5 -5
- package/src/models/DocumentResponse.ts +4 -4
- package/src/models/DocumentVersionMetadata.ts +13 -7
- package/src/models/DocumentVersionMetadataUpdate.ts +6 -6
- package/src/models/DocumentVersionResponse.ts +3 -3
- package/src/models/FolderDocumentResponse.ts +24 -9
- package/src/models/FolderResponse.ts +1 -1
- package/src/models/InviteResponse.ts +2 -2
- package/src/models/LineageNodeResponse.ts +2 -2
- package/src/models/LocationInner.ts +63 -0
- package/src/models/OAuth2Config.ts +6 -0
- package/src/models/PathPartResponse.ts +18 -3
- package/src/models/PathPartTagsResponse.ts +91 -0
- package/src/models/PipelineState.ts +5 -5
- package/src/models/PolygonReference.ts +1 -1
- package/src/models/ScoredChunkResponse.ts +4 -4
- package/src/models/SectionResponse.ts +3 -3
- package/src/models/SignInRequest.ts +1 -1
- package/src/models/TagResponse.ts +1 -1
- package/src/models/TenantResponse.ts +1 -1
- package/src/models/TenantUserInTenantResponse.ts +2 -2
- package/src/models/ThreadMessageResponse.ts +3 -6
- package/src/models/ThreadResponse.ts +1 -1
- package/src/models/UpdateChunkContentRequest.ts +1 -1
- package/src/models/UpdateChunkMetadataRequest.ts +1 -1
- package/src/models/UpdateDocumentRequest.ts +3 -3
- package/src/models/UpdateFolderRequest.ts +2 -2
- package/src/models/UpdatePermissionRequest.ts +1 -1
- package/src/models/UpdateSectionRequest.ts +3 -3
- package/src/models/UpdateTagRequest.ts +3 -3
- package/src/models/UpdateTenantRequest.ts +2 -2
- package/src/models/UpdateThreadRequest.ts +2 -2
- package/src/models/UserResponse.ts +3 -3
- package/src/models/ValidationError.ts +10 -10
- package/src/models/WorkflowDetailResponse.ts +4 -4
- package/src/models/WorkflowSummaryResponse.ts +2 -2
- package/src/models/index.ts +3 -2
- package/dist/esm/models/TagPathPartRequest.d.ts +0 -47
- package/dist/esm/models/TagPathPartRequest.js +0 -44
- package/dist/esm/models/ValidationErrorLocInner.d.ts +0 -41
- package/dist/esm/models/ValidationErrorLocInner.js +0 -32
- package/dist/models/TagPathPartRequest.d.ts +0 -47
- package/dist/models/TagPathPartRequest.js +0 -52
- package/dist/models/ValidationErrorLocInner.d.ts +0 -41
- package/dist/models/ValidationErrorLocInner.js +0 -40
- package/src/models/TagPathPartRequest.ts +0 -83
- package/src/models/ValidationErrorLocInner.ts +0 -63
|
@@ -0,0 +1,63 @@
|
|
|
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
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface LocationInner
|
|
20
|
+
*/
|
|
21
|
+
export interface LocationInner {
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Check if a given object implements the LocationInner interface.
|
|
26
|
+
*/
|
|
27
|
+
export function instanceOfLocationInner(value: object): value is LocationInner {
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export function LocationInnerFromJSON(json: any): LocationInner {
|
|
32
|
+
return LocationInnerFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export function LocationInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): LocationInner {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export function LocationInnerToJSON(json: any): LocationInner {
|
|
40
|
+
return LocationInnerToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function LocationInnerToJSONTyped(value?: LocationInner | null, ignoreDiscriminator: boolean = false): any {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export const LocationInnerPropertyValidationAttributesMap: {
|
|
48
|
+
[property: string]: {
|
|
49
|
+
maxLength?: number,
|
|
50
|
+
minLength?: number,
|
|
51
|
+
pattern?: string,
|
|
52
|
+
maximum?: number,
|
|
53
|
+
exclusiveMaximum?: boolean,
|
|
54
|
+
minimum?: number,
|
|
55
|
+
exclusiveMinimum?: boolean,
|
|
56
|
+
multipleOf?: number,
|
|
57
|
+
maxItems?: number,
|
|
58
|
+
minItems?: number,
|
|
59
|
+
uniqueItems?: boolean
|
|
60
|
+
}
|
|
61
|
+
} = {
|
|
62
|
+
}
|
|
63
|
+
|
|
@@ -19,6 +19,7 @@ import { mapValues } from '../runtime';
|
|
|
19
19
|
* @interface OAuth2Config
|
|
20
20
|
*/
|
|
21
21
|
export interface OAuth2Config {
|
|
22
|
+
[key: string]: any | any;
|
|
22
23
|
/**
|
|
23
24
|
* OAuth2 client ID
|
|
24
25
|
* @type {string}
|
|
@@ -66,6 +67,7 @@ export function OAuth2ConfigFromJSONTyped(json: any, ignoreDiscriminator: boolea
|
|
|
66
67
|
}
|
|
67
68
|
return {
|
|
68
69
|
|
|
70
|
+
...json,
|
|
69
71
|
'clientId': json['client_id'],
|
|
70
72
|
'clientSecret': json['client_secret'],
|
|
71
73
|
'serverMetadataUrl': json['server_metadata_url'],
|
|
@@ -84,6 +86,7 @@ export function OAuth2ConfigToJSONTyped(value?: OAuth2Config | null, ignoreDiscr
|
|
|
84
86
|
|
|
85
87
|
return {
|
|
86
88
|
|
|
89
|
+
...value,
|
|
87
90
|
'client_id': value['clientId'],
|
|
88
91
|
'client_secret': value['clientSecret'],
|
|
89
92
|
'server_metadata_url': value['serverMetadataUrl'],
|
|
@@ -108,3 +111,6 @@ export const OAuth2ConfigPropertyValidationAttributesMap: {
|
|
|
108
111
|
} = {
|
|
109
112
|
}
|
|
110
113
|
|
|
114
|
+
export const OAuth2ConfigAdditionalPropertiesValidationAttributes: { maxProperties?: number, minProperties?: number } = {
|
|
115
|
+
}
|
|
116
|
+
|
|
@@ -20,6 +20,13 @@ import {
|
|
|
20
20
|
PartTypeToJSON,
|
|
21
21
|
PartTypeToJSONTyped,
|
|
22
22
|
} from './PartType';
|
|
23
|
+
import type { TagResponse } from './TagResponse';
|
|
24
|
+
import {
|
|
25
|
+
TagResponseFromJSON,
|
|
26
|
+
TagResponseFromJSONTyped,
|
|
27
|
+
TagResponseToJSON,
|
|
28
|
+
TagResponseToJSONTyped,
|
|
29
|
+
} from './TagResponse';
|
|
23
30
|
|
|
24
31
|
/**
|
|
25
32
|
* Generic path part response model.
|
|
@@ -40,7 +47,7 @@ export interface PathPartResponse {
|
|
|
40
47
|
*/
|
|
41
48
|
name: string;
|
|
42
49
|
/**
|
|
43
|
-
*
|
|
50
|
+
*
|
|
44
51
|
* @type {PartType}
|
|
45
52
|
* @memberof PathPartResponse
|
|
46
53
|
*/
|
|
@@ -50,13 +57,13 @@ export interface PathPartResponse {
|
|
|
50
57
|
* @type {string}
|
|
51
58
|
* @memberof PathPartResponse
|
|
52
59
|
*/
|
|
53
|
-
parentPathId: string;
|
|
60
|
+
parentPathId: string | null;
|
|
54
61
|
/**
|
|
55
62
|
* ID of the underlying object
|
|
56
63
|
* @type {string}
|
|
57
64
|
* @memberof PathPartResponse
|
|
58
65
|
*/
|
|
59
|
-
metadataObjId: string;
|
|
66
|
+
metadataObjId: string | null;
|
|
60
67
|
/**
|
|
61
68
|
* Full materialized path from root
|
|
62
69
|
* @type {string}
|
|
@@ -69,6 +76,12 @@ export interface PathPartResponse {
|
|
|
69
76
|
* @memberof PathPartResponse
|
|
70
77
|
*/
|
|
71
78
|
systemManaged: boolean;
|
|
79
|
+
/**
|
|
80
|
+
* Tags attached to this path part
|
|
81
|
+
* @type {Array<TagResponse>}
|
|
82
|
+
* @memberof PathPartResponse
|
|
83
|
+
*/
|
|
84
|
+
tags?: Array<TagResponse> | null;
|
|
72
85
|
/**
|
|
73
86
|
* Creation timestamp
|
|
74
87
|
* @type {Date}
|
|
@@ -118,6 +131,7 @@ export function PathPartResponseFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
118
131
|
'metadataObjId': json['metadata_obj_id'],
|
|
119
132
|
'materializedPath': json['materialized_path'],
|
|
120
133
|
'systemManaged': json['system_managed'],
|
|
134
|
+
'tags': json['tags'] == null ? undefined : ((json['tags'] as Array<any>).map(TagResponseFromJSON)),
|
|
121
135
|
'createdAt': (new Date(json['created_at'])),
|
|
122
136
|
'updatedAt': (new Date(json['updated_at'])),
|
|
123
137
|
};
|
|
@@ -141,6 +155,7 @@ export function PathPartResponseToJSONTyped(value?: PathPartResponse | null, ign
|
|
|
141
155
|
'metadata_obj_id': value['metadataObjId'],
|
|
142
156
|
'materialized_path': value['materializedPath'],
|
|
143
157
|
'system_managed': value['systemManaged'],
|
|
158
|
+
'tags': value['tags'] == null ? undefined : ((value['tags'] as Array<any>).map(TagResponseToJSON)),
|
|
144
159
|
'created_at': value['createdAt'].toISOString(),
|
|
145
160
|
'updated_at': value['updatedAt'].toISOString(),
|
|
146
161
|
};
|
|
@@ -0,0 +1,91 @@
|
|
|
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 { TagResponse } from './TagResponse';
|
|
17
|
+
import {
|
|
18
|
+
TagResponseFromJSON,
|
|
19
|
+
TagResponseFromJSONTyped,
|
|
20
|
+
TagResponseToJSON,
|
|
21
|
+
TagResponseToJSONTyped,
|
|
22
|
+
} from './TagResponse';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Response containing the current tags for a path part.
|
|
26
|
+
* @export
|
|
27
|
+
* @interface PathPartTagsResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface PathPartTagsResponse {
|
|
30
|
+
/**
|
|
31
|
+
* Tags attached to the path part
|
|
32
|
+
* @type {Array<TagResponse>}
|
|
33
|
+
* @memberof PathPartTagsResponse
|
|
34
|
+
*/
|
|
35
|
+
tags: Array<TagResponse>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the PathPartTagsResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfPathPartTagsResponse(value: object): value is PathPartTagsResponse {
|
|
42
|
+
if (!('tags' in value) || value['tags'] === undefined) return false;
|
|
43
|
+
return true;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function PathPartTagsResponseFromJSON(json: any): PathPartTagsResponse {
|
|
47
|
+
return PathPartTagsResponseFromJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function PathPartTagsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PathPartTagsResponse {
|
|
51
|
+
if (json == null) {
|
|
52
|
+
return json;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
|
|
56
|
+
'tags': ((json['tags'] as Array<any>).map(TagResponseFromJSON)),
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function PathPartTagsResponseToJSON(json: any): PathPartTagsResponse {
|
|
61
|
+
return PathPartTagsResponseToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function PathPartTagsResponseToJSONTyped(value?: PathPartTagsResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'tags': ((value['tags'] as Array<any>).map(TagResponseToJSON)),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export const PathPartTagsResponsePropertyValidationAttributesMap: {
|
|
76
|
+
[property: string]: {
|
|
77
|
+
maxLength?: number,
|
|
78
|
+
minLength?: number,
|
|
79
|
+
pattern?: string,
|
|
80
|
+
maximum?: number,
|
|
81
|
+
exclusiveMaximum?: boolean,
|
|
82
|
+
minimum?: number,
|
|
83
|
+
exclusiveMinimum?: boolean,
|
|
84
|
+
multipleOf?: number,
|
|
85
|
+
maxItems?: number,
|
|
86
|
+
minItems?: number,
|
|
87
|
+
uniqueItems?: boolean
|
|
88
|
+
}
|
|
89
|
+
} = {
|
|
90
|
+
}
|
|
91
|
+
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
*/
|
|
29
29
|
export interface PipelineState {
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
*
|
|
32
32
|
* @type {PipelineStatus}
|
|
33
33
|
* @memberof PipelineState
|
|
34
34
|
*/
|
|
@@ -44,25 +44,25 @@ export interface PipelineState {
|
|
|
44
44
|
* @type {string}
|
|
45
45
|
* @memberof PipelineState
|
|
46
46
|
*/
|
|
47
|
-
lastActivity?: string;
|
|
47
|
+
lastActivity?: string | null;
|
|
48
48
|
/**
|
|
49
49
|
* Error message if pipeline failed
|
|
50
50
|
* @type {string}
|
|
51
51
|
* @memberof PipelineState
|
|
52
52
|
*/
|
|
53
|
-
error?: string;
|
|
53
|
+
error?: string | null;
|
|
54
54
|
/**
|
|
55
55
|
* Temporal workflow ID for tracking the ingestion run
|
|
56
56
|
* @type {string}
|
|
57
57
|
* @memberof PipelineState
|
|
58
58
|
*/
|
|
59
|
-
temporalWorkflowId?: string;
|
|
59
|
+
temporalWorkflowId?: string | null;
|
|
60
60
|
/**
|
|
61
61
|
* Number of chunks processed (for progress tracking)
|
|
62
62
|
* @type {number}
|
|
63
63
|
* @memberof PipelineState
|
|
64
64
|
*/
|
|
65
|
-
chunksProcessed?: number;
|
|
65
|
+
chunksProcessed?: number | null;
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
|
|
@@ -59,13 +59,13 @@ export interface ScoredChunkResponse {
|
|
|
59
59
|
*/
|
|
60
60
|
content: string;
|
|
61
61
|
/**
|
|
62
|
-
*
|
|
62
|
+
*
|
|
63
63
|
* @type {ChunkType}
|
|
64
64
|
* @memberof ScoredChunkResponse
|
|
65
65
|
*/
|
|
66
66
|
chunkType: ChunkType;
|
|
67
67
|
/**
|
|
68
|
-
*
|
|
68
|
+
*
|
|
69
69
|
* @type {ChunkMetadataOutput}
|
|
70
70
|
* @memberof ScoredChunkResponse
|
|
71
71
|
*/
|
|
@@ -81,13 +81,13 @@ export interface ScoredChunkResponse {
|
|
|
81
81
|
* @type {string}
|
|
82
82
|
* @memberof ScoredChunkResponse
|
|
83
83
|
*/
|
|
84
|
-
prevSiblingPathId?: string;
|
|
84
|
+
prevSiblingPathId?: string | null;
|
|
85
85
|
/**
|
|
86
86
|
* Next sibling PathPart ID
|
|
87
87
|
* @type {string}
|
|
88
88
|
* @memberof ScoredChunkResponse
|
|
89
89
|
*/
|
|
90
|
-
nextSiblingPathId?: string;
|
|
90
|
+
nextSiblingPathId?: string | null;
|
|
91
91
|
/**
|
|
92
92
|
* Full materialized path from root
|
|
93
93
|
* @type {string}
|
|
@@ -42,7 +42,7 @@ export interface SectionResponse {
|
|
|
42
42
|
* @type {number}
|
|
43
43
|
* @memberof SectionResponse
|
|
44
44
|
*/
|
|
45
|
-
pageNumber?: number;
|
|
45
|
+
pageNumber?: number | null;
|
|
46
46
|
/**
|
|
47
47
|
* Parent PathPart ID
|
|
48
48
|
* @type {string}
|
|
@@ -54,13 +54,13 @@ export interface SectionResponse {
|
|
|
54
54
|
* @type {string}
|
|
55
55
|
* @memberof SectionResponse
|
|
56
56
|
*/
|
|
57
|
-
prevSiblingPathId?: string;
|
|
57
|
+
prevSiblingPathId?: string | null;
|
|
58
58
|
/**
|
|
59
59
|
* Next sibling PathPart ID
|
|
60
60
|
* @type {string}
|
|
61
61
|
* @memberof SectionResponse
|
|
62
62
|
*/
|
|
63
|
-
nextSiblingPathId?: string;
|
|
63
|
+
nextSiblingPathId?: string | null;
|
|
64
64
|
/**
|
|
65
65
|
* Full materialized path from root
|
|
66
66
|
* @type {string}
|
|
@@ -38,9 +38,9 @@ export interface TenantUserInTenantResponse {
|
|
|
38
38
|
* @type {string}
|
|
39
39
|
* @memberof TenantUserInTenantResponse
|
|
40
40
|
*/
|
|
41
|
-
email?: string;
|
|
41
|
+
email?: string | null;
|
|
42
42
|
/**
|
|
43
|
-
*
|
|
43
|
+
*
|
|
44
44
|
* @type {TenantUserRole}
|
|
45
45
|
* @memberof TenantUserInTenantResponse
|
|
46
46
|
*/
|
|
@@ -46,17 +46,17 @@ export interface ThreadMessageResponse {
|
|
|
46
46
|
*/
|
|
47
47
|
sequence: number;
|
|
48
48
|
/**
|
|
49
|
-
*
|
|
49
|
+
*
|
|
50
50
|
* @type {MessageRole}
|
|
51
51
|
* @memberof ThreadMessageResponse
|
|
52
52
|
*/
|
|
53
53
|
role: MessageRole;
|
|
54
54
|
/**
|
|
55
55
|
* Structured message content
|
|
56
|
-
* @type {
|
|
56
|
+
* @type {{ [key: string]: any; }}
|
|
57
57
|
* @memberof ThreadMessageResponse
|
|
58
58
|
*/
|
|
59
|
-
content:
|
|
59
|
+
content: { [key: string]: any; };
|
|
60
60
|
/**
|
|
61
61
|
* Thread's PathPart ID
|
|
62
62
|
* @type {string}
|
|
@@ -172,6 +172,3 @@ export const ThreadMessageResponsePropertyValidationAttributesMap: {
|
|
|
172
172
|
} = {
|
|
173
173
|
}
|
|
174
174
|
|
|
175
|
-
export const ThreadMessageResponseAdditionalPropertiesValidationAttributes: { maxProperties?: number, minProperties?: number } = {
|
|
176
|
-
}
|
|
177
|
-
|
|
@@ -24,19 +24,19 @@ export interface UpdateDocumentRequest {
|
|
|
24
24
|
* @type {string}
|
|
25
25
|
* @memberof UpdateDocumentRequest
|
|
26
26
|
*/
|
|
27
|
-
name?: string;
|
|
27
|
+
name?: string | null;
|
|
28
28
|
/**
|
|
29
29
|
* New parent PathPart ID for move (must be a FOLDER type)
|
|
30
30
|
* @type {string}
|
|
31
31
|
* @memberof UpdateDocumentRequest
|
|
32
32
|
*/
|
|
33
|
-
parentPathPartId?: string;
|
|
33
|
+
parentPathPartId?: string | null;
|
|
34
34
|
/**
|
|
35
35
|
* New active version ID
|
|
36
36
|
* @type {string}
|
|
37
37
|
* @memberof UpdateDocumentRequest
|
|
38
38
|
*/
|
|
39
|
-
activeVersionId?: string;
|
|
39
|
+
activeVersionId?: string | null;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
/**
|
|
@@ -24,13 +24,13 @@ export interface UpdateFolderRequest {
|
|
|
24
24
|
* @type {string}
|
|
25
25
|
* @memberof UpdateFolderRequest
|
|
26
26
|
*/
|
|
27
|
-
name?: string;
|
|
27
|
+
name?: string | null;
|
|
28
28
|
/**
|
|
29
29
|
* New parent PathPart ID for move (must be a FOLDER type)
|
|
30
30
|
* @type {string}
|
|
31
31
|
* @memberof UpdateFolderRequest
|
|
32
32
|
*/
|
|
33
|
-
parentPathPartId?: string;
|
|
33
|
+
parentPathPartId?: string | null;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
/**
|
|
@@ -24,19 +24,19 @@ export interface UpdateSectionRequest {
|
|
|
24
24
|
* @type {string}
|
|
25
25
|
* @memberof UpdateSectionRequest
|
|
26
26
|
*/
|
|
27
|
-
name?: string;
|
|
27
|
+
name?: string | null;
|
|
28
28
|
/**
|
|
29
29
|
* New page number (must be > 0)
|
|
30
30
|
* @type {number}
|
|
31
31
|
* @memberof UpdateSectionRequest
|
|
32
32
|
*/
|
|
33
|
-
pageNumber?: number;
|
|
33
|
+
pageNumber?: number | null;
|
|
34
34
|
/**
|
|
35
35
|
* Move after this sibling PathPart ID
|
|
36
36
|
* @type {string}
|
|
37
37
|
* @memberof UpdateSectionRequest
|
|
38
38
|
*/
|
|
39
|
-
prevSiblingPathId?: string;
|
|
39
|
+
prevSiblingPathId?: string | null;
|
|
40
40
|
/**
|
|
41
41
|
* Set to true to move to head of sibling list. This is needed since prev_sibling_path_id = None means no update
|
|
42
42
|
* @type {boolean}
|
|
@@ -24,19 +24,19 @@ export interface UpdateTagRequest {
|
|
|
24
24
|
* @type {string}
|
|
25
25
|
* @memberof UpdateTagRequest
|
|
26
26
|
*/
|
|
27
|
-
name?: string;
|
|
27
|
+
name?: string | null;
|
|
28
28
|
/**
|
|
29
29
|
* New tag color as 6-character hex string
|
|
30
30
|
* @type {string}
|
|
31
31
|
* @memberof UpdateTagRequest
|
|
32
32
|
*/
|
|
33
|
-
color?: string;
|
|
33
|
+
color?: string | null;
|
|
34
34
|
/**
|
|
35
35
|
* New tag description (empty string to clear)
|
|
36
36
|
* @type {string}
|
|
37
37
|
* @memberof UpdateTagRequest
|
|
38
38
|
*/
|
|
39
|
-
description?: string;
|
|
39
|
+
description?: string | null;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
/**
|
|
@@ -32,9 +32,9 @@ export interface UpdateTenantRequest {
|
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof UpdateTenantRequest
|
|
34
34
|
*/
|
|
35
|
-
name?: string;
|
|
35
|
+
name?: string | null;
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
37
|
+
*
|
|
38
38
|
* @type {OAuth2Config}
|
|
39
39
|
* @memberof UpdateTenantRequest
|
|
40
40
|
*/
|
|
@@ -24,13 +24,13 @@ export interface UpdateThreadRequest {
|
|
|
24
24
|
* @type {string}
|
|
25
25
|
* @memberof UpdateThreadRequest
|
|
26
26
|
*/
|
|
27
|
-
title?: string;
|
|
27
|
+
title?: string | null;
|
|
28
28
|
/**
|
|
29
29
|
* Parent thread ID. Set to a UUID to link, or null to clear.
|
|
30
30
|
* @type {string}
|
|
31
31
|
* @memberof UpdateThreadRequest
|
|
32
32
|
*/
|
|
33
|
-
parentThreadId?: string;
|
|
33
|
+
parentThreadId?: string | null;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
/**
|
|
@@ -45,9 +45,9 @@ export interface UserResponse {
|
|
|
45
45
|
* @type {string}
|
|
46
46
|
* @memberof UserResponse
|
|
47
47
|
*/
|
|
48
|
-
email: string;
|
|
48
|
+
email: string | null;
|
|
49
49
|
/**
|
|
50
|
-
*
|
|
50
|
+
*
|
|
51
51
|
* @type {IdpType}
|
|
52
52
|
* @memberof UserResponse
|
|
53
53
|
*/
|
|
@@ -59,7 +59,7 @@ export interface UserResponse {
|
|
|
59
59
|
*/
|
|
60
60
|
currentTenantId: string;
|
|
61
61
|
/**
|
|
62
|
-
*
|
|
62
|
+
*
|
|
63
63
|
* @type {TenantUserRole}
|
|
64
64
|
* @memberof UserResponse
|
|
65
65
|
*/
|
|
@@ -13,13 +13,13 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
-
import type {
|
|
16
|
+
import type { LocationInner } from './LocationInner';
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
} from './
|
|
18
|
+
LocationInnerFromJSON,
|
|
19
|
+
LocationInnerFromJSONTyped,
|
|
20
|
+
LocationInnerToJSON,
|
|
21
|
+
LocationInnerToJSONTyped,
|
|
22
|
+
} from './LocationInner';
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
25
|
*
|
|
@@ -29,10 +29,10 @@ import {
|
|
|
29
29
|
export interface ValidationError {
|
|
30
30
|
/**
|
|
31
31
|
*
|
|
32
|
-
* @type {Array<
|
|
32
|
+
* @type {Array<LocationInner>}
|
|
33
33
|
* @memberof ValidationError
|
|
34
34
|
*/
|
|
35
|
-
loc: Array<
|
|
35
|
+
loc: Array<LocationInner>;
|
|
36
36
|
/**
|
|
37
37
|
*
|
|
38
38
|
* @type {string}
|
|
@@ -79,7 +79,7 @@ export function ValidationErrorFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
79
79
|
}
|
|
80
80
|
return {
|
|
81
81
|
|
|
82
|
-
'loc': ((json['loc'] as Array<any>).map(
|
|
82
|
+
'loc': ((json['loc'] as Array<any>).map(LocationInnerFromJSON)),
|
|
83
83
|
'msg': json['msg'],
|
|
84
84
|
'type': json['type'],
|
|
85
85
|
'input': json['input'] == null ? undefined : json['input'],
|
|
@@ -98,7 +98,7 @@ export function ValidationErrorToJSONTyped(value?: ValidationError | null, ignor
|
|
|
98
98
|
|
|
99
99
|
return {
|
|
100
100
|
|
|
101
|
-
'loc': ((value['loc'] as Array<any>).map(
|
|
101
|
+
'loc': ((value['loc'] as Array<any>).map(LocationInnerToJSON)),
|
|
102
102
|
'msg': value['msg'],
|
|
103
103
|
'type': value['type'],
|
|
104
104
|
'input': value['input'],
|