@knowledge-stack/ksapi 1.83.0 → 1.85.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 +22 -0
- package/README.md +21 -2
- package/dist/apis/DocumentCheckoutApi.d.ts +158 -0
- package/dist/apis/DocumentCheckoutApi.js +197 -0
- package/dist/apis/PathPartsApi.d.ts +110 -1
- package/dist/apis/PathPartsApi.js +111 -0
- package/dist/apis/WorkflowMemoryApi.d.ts +249 -0
- package/dist/apis/WorkflowMemoryApi.js +299 -0
- package/dist/apis/index.d.ts +2 -0
- package/dist/apis/index.js +2 -0
- package/dist/esm/apis/DocumentCheckoutApi.d.ts +158 -0
- package/dist/esm/apis/DocumentCheckoutApi.js +160 -0
- package/dist/esm/apis/PathPartsApi.d.ts +110 -1
- package/dist/esm/apis/PathPartsApi.js +112 -1
- package/dist/esm/apis/WorkflowMemoryApi.d.ts +249 -0
- package/dist/esm/apis/WorkflowMemoryApi.js +262 -0
- package/dist/esm/apis/index.d.ts +2 -0
- package/dist/esm/apis/index.js +2 -0
- package/dist/esm/models/AppendEventRequest.d.ts +62 -0
- package/dist/esm/models/AppendEventRequest.js +51 -0
- package/dist/esm/models/AppendMemoryChunkRequest.d.ts +54 -0
- package/dist/esm/models/AppendMemoryChunkRequest.js +52 -0
- package/dist/esm/models/ChunkBulkResponse.d.ts +4 -4
- package/dist/esm/models/ChunkContentItem.d.ts +2 -2
- package/dist/esm/models/ChunkResponse.d.ts +4 -4
- package/dist/esm/models/CreateThreadMessageRequest.d.ts +2 -2
- package/dist/esm/models/CreateWorkflowDefinitionRequest.d.ts +1 -1
- package/dist/esm/models/DocumentCheckoutResponse.d.ts +65 -0
- package/dist/esm/models/DocumentCheckoutResponse.js +56 -0
- package/dist/esm/models/DocumentResponse.d.ts +7 -0
- package/dist/esm/models/DocumentResponse.js +3 -0
- package/dist/esm/models/DocumentVersionMetadata.d.ts +4 -4
- package/dist/esm/models/DocumentVersionMetadataUpdate.d.ts +2 -2
- package/dist/esm/models/EditMemoryChunkRequest.d.ts +47 -0
- package/dist/esm/models/EditMemoryChunkRequest.js +49 -0
- package/dist/esm/models/EventResponse.d.ts +83 -0
- package/dist/esm/models/EventResponse.js +64 -0
- package/dist/esm/models/ListMemoryChunksResponse.d.ts +48 -0
- package/dist/esm/models/ListMemoryChunksResponse.js +45 -0
- package/dist/esm/models/MemoryChunkResponse.d.ts +60 -0
- package/dist/esm/models/MemoryChunkResponse.js +53 -0
- package/dist/esm/models/MemoryKind.d.ts +29 -0
- package/dist/esm/models/MemoryKind.js +47 -0
- package/dist/esm/models/PaginatedResponseEventResponse.d.ts +66 -0
- package/dist/esm/models/PaginatedResponseEventResponse.js +70 -0
- package/dist/esm/models/ScoredChunkResponse.d.ts +4 -4
- package/dist/esm/models/SectionSystemMetadata.d.ts +1 -1
- package/dist/esm/models/TenantSettingsUpdate.d.ts +2 -2
- package/dist/esm/models/ThreadMessageDetailsInput.d.ts +2 -2
- package/dist/esm/models/ThreadMessageDetailsOutput.d.ts +2 -2
- package/dist/esm/models/ThreadMessageResponse.d.ts +2 -2
- package/dist/esm/models/UpdateChunkMetadataRequest.d.ts +2 -2
- package/dist/esm/models/UpdateTenantRequest.d.ts +4 -4
- package/dist/esm/models/UpdateWorkflowDefinitionRequest.d.ts +1 -1
- package/dist/esm/models/WorkflowDefinitionResponse.d.ts +1 -1
- package/dist/esm/models/WorkflowRunSnapshot.d.ts +1 -1
- package/dist/esm/models/index.d.ts +9 -0
- package/dist/esm/models/index.js +9 -0
- package/dist/models/AppendEventRequest.d.ts +62 -0
- package/dist/models/AppendEventRequest.js +59 -0
- package/dist/models/AppendMemoryChunkRequest.d.ts +54 -0
- package/dist/models/AppendMemoryChunkRequest.js +60 -0
- package/dist/models/ChunkBulkResponse.d.ts +4 -4
- package/dist/models/ChunkContentItem.d.ts +2 -2
- package/dist/models/ChunkResponse.d.ts +4 -4
- package/dist/models/CreateThreadMessageRequest.d.ts +2 -2
- package/dist/models/CreateWorkflowDefinitionRequest.d.ts +1 -1
- package/dist/models/DocumentCheckoutResponse.d.ts +65 -0
- package/dist/models/DocumentCheckoutResponse.js +64 -0
- package/dist/models/DocumentResponse.d.ts +7 -0
- package/dist/models/DocumentResponse.js +3 -0
- package/dist/models/DocumentVersionMetadata.d.ts +4 -4
- package/dist/models/DocumentVersionMetadataUpdate.d.ts +2 -2
- package/dist/models/EditMemoryChunkRequest.d.ts +47 -0
- package/dist/models/EditMemoryChunkRequest.js +57 -0
- package/dist/models/EventResponse.d.ts +83 -0
- package/dist/models/EventResponse.js +72 -0
- package/dist/models/ListMemoryChunksResponse.d.ts +48 -0
- package/dist/models/ListMemoryChunksResponse.js +53 -0
- package/dist/models/MemoryChunkResponse.d.ts +60 -0
- package/dist/models/MemoryChunkResponse.js +61 -0
- package/dist/models/MemoryKind.d.ts +29 -0
- package/dist/models/MemoryKind.js +55 -0
- package/dist/models/PaginatedResponseEventResponse.d.ts +66 -0
- package/dist/models/PaginatedResponseEventResponse.js +78 -0
- package/dist/models/ScoredChunkResponse.d.ts +4 -4
- package/dist/models/SectionSystemMetadata.d.ts +1 -1
- package/dist/models/TenantSettingsUpdate.d.ts +2 -2
- package/dist/models/ThreadMessageDetailsInput.d.ts +2 -2
- package/dist/models/ThreadMessageDetailsOutput.d.ts +2 -2
- package/dist/models/ThreadMessageResponse.d.ts +2 -2
- package/dist/models/UpdateChunkMetadataRequest.d.ts +2 -2
- package/dist/models/UpdateTenantRequest.d.ts +4 -4
- package/dist/models/UpdateWorkflowDefinitionRequest.d.ts +1 -1
- package/dist/models/WorkflowDefinitionResponse.d.ts +1 -1
- package/dist/models/WorkflowRunSnapshot.d.ts +1 -1
- package/dist/models/index.d.ts +9 -0
- package/dist/models/index.js +9 -0
- package/docs/AppendEventRequest.md +37 -0
- package/docs/AppendMemoryChunkRequest.md +36 -0
- package/docs/DocumentCheckoutApi.md +233 -0
- package/docs/DocumentCheckoutResponse.md +41 -0
- package/docs/DocumentResponse.md +2 -0
- package/docs/EditMemoryChunkRequest.md +34 -0
- package/docs/EventResponse.md +45 -0
- package/docs/FolderResponseOrDocumentResponse.md +2 -0
- package/docs/ListMemoryChunksResponse.md +34 -0
- package/docs/MemoryChunkResponse.md +39 -0
- package/docs/MemoryKind.md +33 -0
- package/docs/PaginatedResponseEventResponse.md +40 -0
- package/docs/PathPartsApi.md +171 -0
- package/docs/WorkflowMemoryApi.md +390 -0
- package/package.json +1 -1
- package/src/apis/DocumentCheckoutApi.ts +296 -0
- package/src/apis/PathPartsApi.ts +234 -0
- package/src/apis/WorkflowMemoryApi.ts +522 -0
- package/src/apis/index.ts +2 -0
- package/src/models/AppendEventRequest.ts +102 -0
- package/src/models/AppendMemoryChunkRequest.ts +105 -0
- package/src/models/ChunkBulkResponse.ts +4 -4
- package/src/models/ChunkContentItem.ts +2 -2
- package/src/models/ChunkResponse.ts +4 -4
- package/src/models/CreateThreadMessageRequest.ts +2 -2
- package/src/models/CreateWorkflowDefinitionRequest.ts +1 -1
- package/src/models/DocumentCheckoutResponse.ts +110 -0
- package/src/models/DocumentResponse.ts +15 -0
- package/src/models/DocumentVersionMetadata.ts +4 -4
- package/src/models/DocumentVersionMetadataUpdate.ts +2 -2
- package/src/models/EditMemoryChunkRequest.ts +87 -0
- package/src/models/EventResponse.ts +132 -0
- package/src/models/ListMemoryChunksResponse.ts +91 -0
- package/src/models/MemoryChunkResponse.ts +111 -0
- package/src/models/MemoryKind.ts +57 -0
- package/src/models/PaginatedResponseEventResponse.ts +130 -0
- package/src/models/ScoredChunkResponse.ts +4 -4
- package/src/models/SectionSystemMetadata.ts +1 -1
- package/src/models/TenantSettingsUpdate.ts +2 -2
- package/src/models/ThreadMessageDetailsInput.ts +2 -2
- package/src/models/ThreadMessageDetailsOutput.ts +2 -2
- package/src/models/ThreadMessageResponse.ts +2 -2
- package/src/models/UpdateChunkMetadataRequest.ts +2 -2
- package/src/models/UpdateTenantRequest.ts +4 -4
- package/src/models/UpdateWorkflowDefinitionRequest.ts +1 -1
- package/src/models/WorkflowDefinitionResponse.ts +1 -1
- package/src/models/WorkflowRunSnapshot.ts +1 -1
- package/src/models/index.ts +9 -0
|
@@ -0,0 +1,105 @@
|
|
|
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 { MemoryKind } from './MemoryKind';
|
|
17
|
+
import {
|
|
18
|
+
MemoryKindFromJSON,
|
|
19
|
+
MemoryKindFromJSONTyped,
|
|
20
|
+
MemoryKindToJSON,
|
|
21
|
+
MemoryKindToJSONTyped,
|
|
22
|
+
} from './MemoryKind';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface AppendMemoryChunkRequest
|
|
28
|
+
*/
|
|
29
|
+
export interface AppendMemoryChunkRequest {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof AppendMemoryChunkRequest
|
|
34
|
+
*/
|
|
35
|
+
body: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {MemoryKind}
|
|
39
|
+
* @memberof AppendMemoryChunkRequest
|
|
40
|
+
*/
|
|
41
|
+
kind?: MemoryKind;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
export const AppendMemoryChunkRequestPropertyValidationAttributesMap: {
|
|
46
|
+
[property: string]: {
|
|
47
|
+
maxLength?: number,
|
|
48
|
+
minLength?: number,
|
|
49
|
+
pattern?: string,
|
|
50
|
+
maximum?: number,
|
|
51
|
+
exclusiveMaximum?: boolean,
|
|
52
|
+
minimum?: number,
|
|
53
|
+
exclusiveMinimum?: boolean,
|
|
54
|
+
multipleOf?: number,
|
|
55
|
+
maxItems?: number,
|
|
56
|
+
minItems?: number,
|
|
57
|
+
uniqueItems?: boolean
|
|
58
|
+
}
|
|
59
|
+
} = {
|
|
60
|
+
body: {
|
|
61
|
+
maxLength: 16384,
|
|
62
|
+
minLength: 1,
|
|
63
|
+
},
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Check if a given object implements the AppendMemoryChunkRequest interface.
|
|
69
|
+
*/
|
|
70
|
+
export function instanceOfAppendMemoryChunkRequest(value: object): value is AppendMemoryChunkRequest {
|
|
71
|
+
if (!('body' in value) || value['body'] === undefined) return false;
|
|
72
|
+
return true;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function AppendMemoryChunkRequestFromJSON(json: any): AppendMemoryChunkRequest {
|
|
76
|
+
return AppendMemoryChunkRequestFromJSONTyped(json, false);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function AppendMemoryChunkRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AppendMemoryChunkRequest {
|
|
80
|
+
if (json == null) {
|
|
81
|
+
return json;
|
|
82
|
+
}
|
|
83
|
+
return {
|
|
84
|
+
|
|
85
|
+
'body': json['body'],
|
|
86
|
+
'kind': json['kind'] == null ? undefined : MemoryKindFromJSON(json['kind']),
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export function AppendMemoryChunkRequestToJSON(json: any): AppendMemoryChunkRequest {
|
|
91
|
+
return AppendMemoryChunkRequestToJSONTyped(json, false);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export function AppendMemoryChunkRequestToJSONTyped(value?: AppendMemoryChunkRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
95
|
+
if (value == null) {
|
|
96
|
+
return value;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
return {
|
|
100
|
+
|
|
101
|
+
'body': value['body'],
|
|
102
|
+
'kind': MemoryKindToJSON(value['kind']),
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
|
|
@@ -145,17 +145,17 @@ export interface ChunkBulkResponse {
|
|
|
145
145
|
*/
|
|
146
146
|
assetS3Urls?: Array<string>;
|
|
147
147
|
/**
|
|
148
|
-
*
|
|
148
|
+
* Ancestor document info (populated when with_document=true)
|
|
149
149
|
* @type {ChunkDocumentResponse}
|
|
150
150
|
* @memberof ChunkBulkResponse
|
|
151
151
|
*/
|
|
152
|
-
document?: ChunkDocumentResponse;
|
|
152
|
+
document?: ChunkDocumentResponse | null;
|
|
153
153
|
/**
|
|
154
|
-
*
|
|
154
|
+
* Ancestor document version info (populated when with_document=true)
|
|
155
155
|
* @type {ChunkDocumentVersionResponse}
|
|
156
156
|
* @memberof ChunkBulkResponse
|
|
157
157
|
*/
|
|
158
|
-
documentVersion?: ChunkDocumentVersionResponse;
|
|
158
|
+
documentVersion?: ChunkDocumentVersionResponse | null;
|
|
159
159
|
/**
|
|
160
160
|
* Ordered ancestor PathPart IDs from root to chunk
|
|
161
161
|
* @type {Array<string>}
|
|
@@ -83,11 +83,11 @@ export interface ChunkContentItem {
|
|
|
83
83
|
*/
|
|
84
84
|
chunkType?: ChunkType;
|
|
85
85
|
/**
|
|
86
|
-
*
|
|
86
|
+
* Chunk metadata
|
|
87
87
|
* @type {ChunkMetadata}
|
|
88
88
|
* @memberof ChunkContentItem
|
|
89
89
|
*/
|
|
90
|
-
chunkMetadata?: ChunkMetadata;
|
|
90
|
+
chunkMetadata?: ChunkMetadata | null;
|
|
91
91
|
/**
|
|
92
92
|
* Full materialized path from root
|
|
93
93
|
* @type {string}
|
|
@@ -145,17 +145,17 @@ export interface ChunkResponse {
|
|
|
145
145
|
*/
|
|
146
146
|
assetS3Urls?: Array<string>;
|
|
147
147
|
/**
|
|
148
|
-
*
|
|
148
|
+
* Ancestor document info (populated when with_document=true)
|
|
149
149
|
* @type {ChunkDocumentResponse}
|
|
150
150
|
* @memberof ChunkResponse
|
|
151
151
|
*/
|
|
152
|
-
document?: ChunkDocumentResponse;
|
|
152
|
+
document?: ChunkDocumentResponse | null;
|
|
153
153
|
/**
|
|
154
|
-
*
|
|
154
|
+
* Ancestor document version info (populated when with_document=true)
|
|
155
155
|
* @type {ChunkDocumentVersionResponse}
|
|
156
156
|
* @memberof ChunkResponse
|
|
157
157
|
*/
|
|
158
|
-
documentVersion?: ChunkDocumentVersionResponse;
|
|
158
|
+
documentVersion?: ChunkDocumentVersionResponse | null;
|
|
159
159
|
}
|
|
160
160
|
|
|
161
161
|
|
|
@@ -60,11 +60,11 @@ export interface CreateThreadMessageRequest {
|
|
|
60
60
|
*/
|
|
61
61
|
content: ThreadMessageContent;
|
|
62
62
|
/**
|
|
63
|
-
*
|
|
63
|
+
* Message details (execution steps). Omit for user messages.
|
|
64
64
|
* @type {ThreadMessageDetailsInput}
|
|
65
65
|
* @memberof CreateThreadMessageRequest
|
|
66
66
|
*/
|
|
67
|
-
details?: ThreadMessageDetailsInput;
|
|
67
|
+
details?: ThreadMessageDetailsInput | null;
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
|
|
@@ -64,7 +64,7 @@ export interface CreateWorkflowDefinitionRequest {
|
|
|
64
64
|
* @type {SelfHostedRunnerConfig}
|
|
65
65
|
* @memberof CreateWorkflowDefinitionRequest
|
|
66
66
|
*/
|
|
67
|
-
runnerConfig?: SelfHostedRunnerConfig;
|
|
67
|
+
runnerConfig?: SelfHostedRunnerConfig | null;
|
|
68
68
|
/**
|
|
69
69
|
*
|
|
70
70
|
* @type {number}
|
|
@@ -0,0 +1,110 @@
|
|
|
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
|
+
* Active checkout state on a document.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface DocumentCheckoutResponse
|
|
20
|
+
*/
|
|
21
|
+
export interface DocumentCheckoutResponse {
|
|
22
|
+
/**
|
|
23
|
+
* Tenant ID
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof DocumentCheckoutResponse
|
|
26
|
+
*/
|
|
27
|
+
tenantId: string;
|
|
28
|
+
/**
|
|
29
|
+
* Document's PathPart ID
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof DocumentCheckoutResponse
|
|
32
|
+
*/
|
|
33
|
+
pathPartId: string;
|
|
34
|
+
/**
|
|
35
|
+
* User who holds the checkout
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof DocumentCheckoutResponse
|
|
38
|
+
*/
|
|
39
|
+
userId: string;
|
|
40
|
+
/**
|
|
41
|
+
* When the checkout was acquired
|
|
42
|
+
* @type {Date}
|
|
43
|
+
* @memberof DocumentCheckoutResponse
|
|
44
|
+
*/
|
|
45
|
+
acquiredAt: Date;
|
|
46
|
+
}
|
|
47
|
+
export const DocumentCheckoutResponsePropertyValidationAttributesMap: {
|
|
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
|
+
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Check if a given object implements the DocumentCheckoutResponse interface.
|
|
67
|
+
*/
|
|
68
|
+
export function instanceOfDocumentCheckoutResponse(value: object): value is DocumentCheckoutResponse {
|
|
69
|
+
if (!('tenantId' in value) || value['tenantId'] === undefined) return false;
|
|
70
|
+
if (!('pathPartId' in value) || value['pathPartId'] === undefined) return false;
|
|
71
|
+
if (!('userId' in value) || value['userId'] === undefined) return false;
|
|
72
|
+
if (!('acquiredAt' in value) || value['acquiredAt'] === undefined) return false;
|
|
73
|
+
return true;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function DocumentCheckoutResponseFromJSON(json: any): DocumentCheckoutResponse {
|
|
77
|
+
return DocumentCheckoutResponseFromJSONTyped(json, false);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function DocumentCheckoutResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DocumentCheckoutResponse {
|
|
81
|
+
if (json == null) {
|
|
82
|
+
return json;
|
|
83
|
+
}
|
|
84
|
+
return {
|
|
85
|
+
|
|
86
|
+
'tenantId': json['tenant_id'],
|
|
87
|
+
'pathPartId': json['path_part_id'],
|
|
88
|
+
'userId': json['user_id'],
|
|
89
|
+
'acquiredAt': (new Date(json['acquired_at'])),
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export function DocumentCheckoutResponseToJSON(json: any): DocumentCheckoutResponse {
|
|
94
|
+
return DocumentCheckoutResponseToJSONTyped(json, false);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export function DocumentCheckoutResponseToJSONTyped(value?: DocumentCheckoutResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
98
|
+
if (value == null) {
|
|
99
|
+
return value;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
return {
|
|
103
|
+
|
|
104
|
+
'tenant_id': value['tenantId'],
|
|
105
|
+
'path_part_id': value['pathPartId'],
|
|
106
|
+
'user_id': value['userId'],
|
|
107
|
+
'acquired_at': value['acquiredAt'].toISOString(),
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
|
|
@@ -34,6 +34,13 @@ import {
|
|
|
34
34
|
DocumentTypeToJSON,
|
|
35
35
|
DocumentTypeToJSONTyped,
|
|
36
36
|
} from './DocumentType';
|
|
37
|
+
import type { DocumentCheckoutResponse } from './DocumentCheckoutResponse';
|
|
38
|
+
import {
|
|
39
|
+
DocumentCheckoutResponseFromJSON,
|
|
40
|
+
DocumentCheckoutResponseFromJSONTyped,
|
|
41
|
+
DocumentCheckoutResponseToJSON,
|
|
42
|
+
DocumentCheckoutResponseToJSONTyped,
|
|
43
|
+
} from './DocumentCheckoutResponse';
|
|
37
44
|
import type { DocumentVersionResponse } from './DocumentVersionResponse';
|
|
38
45
|
import {
|
|
39
46
|
DocumentVersionResponseFromJSON,
|
|
@@ -156,6 +163,12 @@ export interface DocumentResponse {
|
|
|
156
163
|
* @memberof DocumentResponse
|
|
157
164
|
*/
|
|
158
165
|
canWrite?: boolean | null;
|
|
166
|
+
/**
|
|
167
|
+
* Active write-lock state. Null when no checkout is held. Populated on detail endpoints (GET /v1/documents/{id}). Any tenant member with read access may observe this state.
|
|
168
|
+
* @type {DocumentCheckoutResponse}
|
|
169
|
+
* @memberof DocumentResponse
|
|
170
|
+
*/
|
|
171
|
+
checkout?: DocumentCheckoutResponse | null;
|
|
159
172
|
}
|
|
160
173
|
|
|
161
174
|
|
|
@@ -236,6 +249,7 @@ export function DocumentResponseFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
236
249
|
'updatedAt': (new Date(json['updated_at'])),
|
|
237
250
|
'tags': json['tags'] == null ? undefined : ((json['tags'] as Array<any>).map(TagResponseFromJSON)),
|
|
238
251
|
'canWrite': json['can_write'] == null ? undefined : json['can_write'],
|
|
252
|
+
'checkout': json['checkout'] == null ? undefined : DocumentCheckoutResponseFromJSON(json['checkout']),
|
|
239
253
|
};
|
|
240
254
|
}
|
|
241
255
|
|
|
@@ -268,6 +282,7 @@ export function DocumentResponseToJSONTyped(value?: DocumentResponse | null, ign
|
|
|
268
282
|
'updated_at': value['updatedAt'].toISOString(),
|
|
269
283
|
'tags': value['tags'] == null ? undefined : ((value['tags'] as Array<any>).map(TagResponseToJSON)),
|
|
270
284
|
'can_write': value['canWrite'],
|
|
285
|
+
'checkout': DocumentCheckoutResponseToJSON(value['checkout']),
|
|
271
286
|
};
|
|
272
287
|
}
|
|
273
288
|
|
|
@@ -68,11 +68,11 @@ export interface DocumentVersionMetadata {
|
|
|
68
68
|
*/
|
|
69
69
|
hash?: string | null;
|
|
70
70
|
/**
|
|
71
|
-
*
|
|
71
|
+
* Current state of the ingestion pipeline workflow
|
|
72
72
|
* @type {PipelineState}
|
|
73
73
|
* @memberof DocumentVersionMetadata
|
|
74
74
|
*/
|
|
75
|
-
pipelineState?: PipelineState;
|
|
75
|
+
pipelineState?: PipelineState | null;
|
|
76
76
|
/**
|
|
77
77
|
* Total number of pages in the document
|
|
78
78
|
* @type {number}
|
|
@@ -116,11 +116,11 @@ export interface DocumentVersionMetadata {
|
|
|
116
116
|
*/
|
|
117
117
|
xlsxKpiCatalog?: Array<{ [key: string]: any; }> | null;
|
|
118
118
|
/**
|
|
119
|
-
*
|
|
119
|
+
* Aggregate statistics for the document version (tokens, chunk counts, depth)
|
|
120
120
|
* @type {InformationStatistics}
|
|
121
121
|
* @memberof DocumentVersionMetadata
|
|
122
122
|
*/
|
|
123
|
-
informationStatistics?: InformationStatistics;
|
|
123
|
+
informationStatistics?: InformationStatistics | null;
|
|
124
124
|
/**
|
|
125
125
|
* True once the conversion activity successfully consumed PAGE quota
|
|
126
126
|
* @type {boolean}
|
|
@@ -84,7 +84,7 @@ export interface DocumentVersionMetadataUpdate {
|
|
|
84
84
|
* @type {PipelineState}
|
|
85
85
|
* @memberof DocumentVersionMetadataUpdate
|
|
86
86
|
*/
|
|
87
|
-
pipelineState?: PipelineState;
|
|
87
|
+
pipelineState?: PipelineState | null;
|
|
88
88
|
/**
|
|
89
89
|
*
|
|
90
90
|
* @type {number}
|
|
@@ -132,7 +132,7 @@ export interface DocumentVersionMetadataUpdate {
|
|
|
132
132
|
* @type {InformationStatistics}
|
|
133
133
|
* @memberof DocumentVersionMetadataUpdate
|
|
134
134
|
*/
|
|
135
|
-
informationStatistics?: InformationStatistics;
|
|
135
|
+
informationStatistics?: InformationStatistics | null;
|
|
136
136
|
/**
|
|
137
137
|
*
|
|
138
138
|
* @type {boolean}
|
|
@@ -0,0 +1,87 @@
|
|
|
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 EditMemoryChunkRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface EditMemoryChunkRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof EditMemoryChunkRequest
|
|
26
|
+
*/
|
|
27
|
+
body: string;
|
|
28
|
+
}
|
|
29
|
+
export const EditMemoryChunkRequestPropertyValidationAttributesMap: {
|
|
30
|
+
[property: string]: {
|
|
31
|
+
maxLength?: number,
|
|
32
|
+
minLength?: number,
|
|
33
|
+
pattern?: string,
|
|
34
|
+
maximum?: number,
|
|
35
|
+
exclusiveMaximum?: boolean,
|
|
36
|
+
minimum?: number,
|
|
37
|
+
exclusiveMinimum?: boolean,
|
|
38
|
+
multipleOf?: number,
|
|
39
|
+
maxItems?: number,
|
|
40
|
+
minItems?: number,
|
|
41
|
+
uniqueItems?: boolean
|
|
42
|
+
}
|
|
43
|
+
} = {
|
|
44
|
+
body: {
|
|
45
|
+
maxLength: 16384,
|
|
46
|
+
minLength: 1,
|
|
47
|
+
},
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the EditMemoryChunkRequest interface.
|
|
53
|
+
*/
|
|
54
|
+
export function instanceOfEditMemoryChunkRequest(value: object): value is EditMemoryChunkRequest {
|
|
55
|
+
if (!('body' in value) || value['body'] === undefined) return false;
|
|
56
|
+
return true;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function EditMemoryChunkRequestFromJSON(json: any): EditMemoryChunkRequest {
|
|
60
|
+
return EditMemoryChunkRequestFromJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function EditMemoryChunkRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): EditMemoryChunkRequest {
|
|
64
|
+
if (json == null) {
|
|
65
|
+
return json;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'body': json['body'],
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function EditMemoryChunkRequestToJSON(json: any): EditMemoryChunkRequest {
|
|
74
|
+
return EditMemoryChunkRequestToJSONTyped(json, false);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function EditMemoryChunkRequestToJSONTyped(value?: EditMemoryChunkRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
78
|
+
if (value == null) {
|
|
79
|
+
return value;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
return {
|
|
83
|
+
|
|
84
|
+
'body': value['body'],
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
|
|
@@ -0,0 +1,132 @@
|
|
|
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
|
+
* One event row, anchored to a path_part subject.
|
|
18
|
+
*
|
|
19
|
+
* ``kind`` is namespaced ``domain.action`` (e.g. ``workflow.approval``,
|
|
20
|
+
* ``document.created``). ``payload`` is the domain-specific structured
|
|
21
|
+
* JSON associated with the event.
|
|
22
|
+
* @export
|
|
23
|
+
* @interface EventResponse
|
|
24
|
+
*/
|
|
25
|
+
export interface EventResponse {
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof EventResponse
|
|
30
|
+
*/
|
|
31
|
+
id: string;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof EventResponse
|
|
36
|
+
*/
|
|
37
|
+
subjectPathPartId: string;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof EventResponse
|
|
42
|
+
*/
|
|
43
|
+
kind: string;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {Date}
|
|
47
|
+
* @memberof EventResponse
|
|
48
|
+
*/
|
|
49
|
+
ts: Date;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof EventResponse
|
|
54
|
+
*/
|
|
55
|
+
actorUserId: string | null;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {{ [key: string]: any; }}
|
|
59
|
+
* @memberof EventResponse
|
|
60
|
+
*/
|
|
61
|
+
payload: { [key: string]: any; };
|
|
62
|
+
}
|
|
63
|
+
export const EventResponsePropertyValidationAttributesMap: {
|
|
64
|
+
[property: string]: {
|
|
65
|
+
maxLength?: number,
|
|
66
|
+
minLength?: number,
|
|
67
|
+
pattern?: string,
|
|
68
|
+
maximum?: number,
|
|
69
|
+
exclusiveMaximum?: boolean,
|
|
70
|
+
minimum?: number,
|
|
71
|
+
exclusiveMinimum?: boolean,
|
|
72
|
+
multipleOf?: number,
|
|
73
|
+
maxItems?: number,
|
|
74
|
+
minItems?: number,
|
|
75
|
+
uniqueItems?: boolean
|
|
76
|
+
}
|
|
77
|
+
} = {
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Check if a given object implements the EventResponse interface.
|
|
83
|
+
*/
|
|
84
|
+
export function instanceOfEventResponse(value: object): value is EventResponse {
|
|
85
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
86
|
+
if (!('subjectPathPartId' in value) || value['subjectPathPartId'] === undefined) return false;
|
|
87
|
+
if (!('kind' in value) || value['kind'] === undefined) return false;
|
|
88
|
+
if (!('ts' in value) || value['ts'] === undefined) return false;
|
|
89
|
+
if (!('actorUserId' in value) || value['actorUserId'] === undefined) return false;
|
|
90
|
+
if (!('payload' in value) || value['payload'] === undefined) return false;
|
|
91
|
+
return true;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export function EventResponseFromJSON(json: any): EventResponse {
|
|
95
|
+
return EventResponseFromJSONTyped(json, false);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export function EventResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): EventResponse {
|
|
99
|
+
if (json == null) {
|
|
100
|
+
return json;
|
|
101
|
+
}
|
|
102
|
+
return {
|
|
103
|
+
|
|
104
|
+
'id': json['id'],
|
|
105
|
+
'subjectPathPartId': json['subject_path_part_id'],
|
|
106
|
+
'kind': json['kind'],
|
|
107
|
+
'ts': (new Date(json['ts'])),
|
|
108
|
+
'actorUserId': json['actor_user_id'],
|
|
109
|
+
'payload': json['payload'],
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export function EventResponseToJSON(json: any): EventResponse {
|
|
114
|
+
return EventResponseToJSONTyped(json, false);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
export function EventResponseToJSONTyped(value?: EventResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
118
|
+
if (value == null) {
|
|
119
|
+
return value;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
return {
|
|
123
|
+
|
|
124
|
+
'id': value['id'],
|
|
125
|
+
'subject_path_part_id': value['subjectPathPartId'],
|
|
126
|
+
'kind': value['kind'],
|
|
127
|
+
'ts': value['ts'].toISOString(),
|
|
128
|
+
'actor_user_id': value['actorUserId'],
|
|
129
|
+
'payload': value['payload'],
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
|
|
@@ -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 { MemoryChunkResponse } from './MemoryChunkResponse';
|
|
17
|
+
import {
|
|
18
|
+
MemoryChunkResponseFromJSON,
|
|
19
|
+
MemoryChunkResponseFromJSONTyped,
|
|
20
|
+
MemoryChunkResponseToJSON,
|
|
21
|
+
MemoryChunkResponseToJSONTyped,
|
|
22
|
+
} from './MemoryChunkResponse';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ListMemoryChunksResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface ListMemoryChunksResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<MemoryChunkResponse>}
|
|
33
|
+
* @memberof ListMemoryChunksResponse
|
|
34
|
+
*/
|
|
35
|
+
chunks: Array<MemoryChunkResponse>;
|
|
36
|
+
}
|
|
37
|
+
export const ListMemoryChunksResponsePropertyValidationAttributesMap: {
|
|
38
|
+
[property: string]: {
|
|
39
|
+
maxLength?: number,
|
|
40
|
+
minLength?: number,
|
|
41
|
+
pattern?: string,
|
|
42
|
+
maximum?: number,
|
|
43
|
+
exclusiveMaximum?: boolean,
|
|
44
|
+
minimum?: number,
|
|
45
|
+
exclusiveMinimum?: boolean,
|
|
46
|
+
multipleOf?: number,
|
|
47
|
+
maxItems?: number,
|
|
48
|
+
minItems?: number,
|
|
49
|
+
uniqueItems?: boolean
|
|
50
|
+
}
|
|
51
|
+
} = {
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Check if a given object implements the ListMemoryChunksResponse interface.
|
|
57
|
+
*/
|
|
58
|
+
export function instanceOfListMemoryChunksResponse(value: object): value is ListMemoryChunksResponse {
|
|
59
|
+
if (!('chunks' in value) || value['chunks'] === undefined) return false;
|
|
60
|
+
return true;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function ListMemoryChunksResponseFromJSON(json: any): ListMemoryChunksResponse {
|
|
64
|
+
return ListMemoryChunksResponseFromJSONTyped(json, false);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function ListMemoryChunksResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListMemoryChunksResponse {
|
|
68
|
+
if (json == null) {
|
|
69
|
+
return json;
|
|
70
|
+
}
|
|
71
|
+
return {
|
|
72
|
+
|
|
73
|
+
'chunks': ((json['chunks'] as Array<any>).map(MemoryChunkResponseFromJSON)),
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function ListMemoryChunksResponseToJSON(json: any): ListMemoryChunksResponse {
|
|
78
|
+
return ListMemoryChunksResponseToJSONTyped(json, false);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export function ListMemoryChunksResponseToJSONTyped(value?: ListMemoryChunksResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
82
|
+
if (value == null) {
|
|
83
|
+
return value;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
return {
|
|
87
|
+
|
|
88
|
+
'chunks': ((value['chunks'] as Array<any>).map(MemoryChunkResponseToJSON)),
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
|