@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
|
@@ -116,17 +116,17 @@ export interface ChunkResponse {
|
|
|
116
116
|
*/
|
|
117
117
|
assetS3Urls?: Array<string>;
|
|
118
118
|
/**
|
|
119
|
-
*
|
|
119
|
+
* Ancestor document info (populated when with_document=true)
|
|
120
120
|
* @type {ChunkDocumentResponse}
|
|
121
121
|
* @memberof ChunkResponse
|
|
122
122
|
*/
|
|
123
|
-
document?: ChunkDocumentResponse;
|
|
123
|
+
document?: ChunkDocumentResponse | null;
|
|
124
124
|
/**
|
|
125
|
-
*
|
|
125
|
+
* Ancestor document version info (populated when with_document=true)
|
|
126
126
|
* @type {ChunkDocumentVersionResponse}
|
|
127
127
|
* @memberof ChunkResponse
|
|
128
128
|
*/
|
|
129
|
-
documentVersion?: ChunkDocumentVersionResponse;
|
|
129
|
+
documentVersion?: ChunkDocumentVersionResponse | null;
|
|
130
130
|
}
|
|
131
131
|
export declare const ChunkResponsePropertyValidationAttributesMap: {
|
|
132
132
|
[property: string]: {
|
|
@@ -37,11 +37,11 @@ export interface CreateThreadMessageRequest {
|
|
|
37
37
|
*/
|
|
38
38
|
content: ThreadMessageContent;
|
|
39
39
|
/**
|
|
40
|
-
*
|
|
40
|
+
* Message details (execution steps). Omit for user messages.
|
|
41
41
|
* @type {ThreadMessageDetailsInput}
|
|
42
42
|
* @memberof CreateThreadMessageRequest
|
|
43
43
|
*/
|
|
44
|
-
details?: ThreadMessageDetailsInput;
|
|
44
|
+
details?: ThreadMessageDetailsInput | null;
|
|
45
45
|
}
|
|
46
46
|
export declare const CreateThreadMessageRequestPropertyValidationAttributesMap: {
|
|
47
47
|
[property: string]: {
|
|
@@ -47,7 +47,7 @@ export interface CreateWorkflowDefinitionRequest {
|
|
|
47
47
|
* @type {SelfHostedRunnerConfig}
|
|
48
48
|
* @memberof CreateWorkflowDefinitionRequest
|
|
49
49
|
*/
|
|
50
|
-
runnerConfig?: SelfHostedRunnerConfig;
|
|
50
|
+
runnerConfig?: SelfHostedRunnerConfig | null;
|
|
51
51
|
/**
|
|
52
52
|
*
|
|
53
53
|
* @type {number}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Knowledge Stack API
|
|
3
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Active checkout state on a document.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface DocumentCheckoutResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface DocumentCheckoutResponse {
|
|
18
|
+
/**
|
|
19
|
+
* Tenant ID
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof DocumentCheckoutResponse
|
|
22
|
+
*/
|
|
23
|
+
tenantId: string;
|
|
24
|
+
/**
|
|
25
|
+
* Document's PathPart ID
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof DocumentCheckoutResponse
|
|
28
|
+
*/
|
|
29
|
+
pathPartId: string;
|
|
30
|
+
/**
|
|
31
|
+
* User who holds the checkout
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof DocumentCheckoutResponse
|
|
34
|
+
*/
|
|
35
|
+
userId: string;
|
|
36
|
+
/**
|
|
37
|
+
* When the checkout was acquired
|
|
38
|
+
* @type {Date}
|
|
39
|
+
* @memberof DocumentCheckoutResponse
|
|
40
|
+
*/
|
|
41
|
+
acquiredAt: Date;
|
|
42
|
+
}
|
|
43
|
+
export declare const DocumentCheckoutResponsePropertyValidationAttributesMap: {
|
|
44
|
+
[property: string]: {
|
|
45
|
+
maxLength?: number;
|
|
46
|
+
minLength?: number;
|
|
47
|
+
pattern?: string;
|
|
48
|
+
maximum?: number;
|
|
49
|
+
exclusiveMaximum?: boolean;
|
|
50
|
+
minimum?: number;
|
|
51
|
+
exclusiveMinimum?: boolean;
|
|
52
|
+
multipleOf?: number;
|
|
53
|
+
maxItems?: number;
|
|
54
|
+
minItems?: number;
|
|
55
|
+
uniqueItems?: boolean;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
/**
|
|
59
|
+
* Check if a given object implements the DocumentCheckoutResponse interface.
|
|
60
|
+
*/
|
|
61
|
+
export declare function instanceOfDocumentCheckoutResponse(value: object): value is DocumentCheckoutResponse;
|
|
62
|
+
export declare function DocumentCheckoutResponseFromJSON(json: any): DocumentCheckoutResponse;
|
|
63
|
+
export declare function DocumentCheckoutResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DocumentCheckoutResponse;
|
|
64
|
+
export declare function DocumentCheckoutResponseToJSON(json: any): DocumentCheckoutResponse;
|
|
65
|
+
export declare function DocumentCheckoutResponseToJSONTyped(value?: DocumentCheckoutResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Knowledge Stack API
|
|
6
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.DocumentCheckoutResponsePropertyValidationAttributesMap = void 0;
|
|
17
|
+
exports.instanceOfDocumentCheckoutResponse = instanceOfDocumentCheckoutResponse;
|
|
18
|
+
exports.DocumentCheckoutResponseFromJSON = DocumentCheckoutResponseFromJSON;
|
|
19
|
+
exports.DocumentCheckoutResponseFromJSONTyped = DocumentCheckoutResponseFromJSONTyped;
|
|
20
|
+
exports.DocumentCheckoutResponseToJSON = DocumentCheckoutResponseToJSON;
|
|
21
|
+
exports.DocumentCheckoutResponseToJSONTyped = DocumentCheckoutResponseToJSONTyped;
|
|
22
|
+
exports.DocumentCheckoutResponsePropertyValidationAttributesMap = {};
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the DocumentCheckoutResponse interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfDocumentCheckoutResponse(value) {
|
|
27
|
+
if (!('tenantId' in value) || value['tenantId'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('pathPartId' in value) || value['pathPartId'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('userId' in value) || value['userId'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('acquiredAt' in value) || value['acquiredAt'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
function DocumentCheckoutResponseFromJSON(json) {
|
|
38
|
+
return DocumentCheckoutResponseFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
function DocumentCheckoutResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
+
if (json == null) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'tenantId': json['tenant_id'],
|
|
46
|
+
'pathPartId': json['path_part_id'],
|
|
47
|
+
'userId': json['user_id'],
|
|
48
|
+
'acquiredAt': (new Date(json['acquired_at'])),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
function DocumentCheckoutResponseToJSON(json) {
|
|
52
|
+
return DocumentCheckoutResponseToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
function DocumentCheckoutResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
55
|
+
if (value == null) {
|
|
56
|
+
return value;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'tenant_id': value['tenantId'],
|
|
60
|
+
'path_part_id': value['pathPartId'],
|
|
61
|
+
'user_id': value['userId'],
|
|
62
|
+
'acquired_at': value['acquiredAt'].toISOString(),
|
|
63
|
+
};
|
|
64
|
+
}
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
import type { DocumentOrigin } from './DocumentOrigin';
|
|
13
13
|
import type { TagResponse } from './TagResponse';
|
|
14
14
|
import type { DocumentType } from './DocumentType';
|
|
15
|
+
import type { DocumentCheckoutResponse } from './DocumentCheckoutResponse';
|
|
15
16
|
import type { DocumentVersionResponse } from './DocumentVersionResponse';
|
|
16
17
|
/**
|
|
17
18
|
* Document response model.
|
|
@@ -127,6 +128,12 @@ export interface DocumentResponse {
|
|
|
127
128
|
* @memberof DocumentResponse
|
|
128
129
|
*/
|
|
129
130
|
canWrite?: boolean | null;
|
|
131
|
+
/**
|
|
132
|
+
* 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.
|
|
133
|
+
* @type {DocumentCheckoutResponse}
|
|
134
|
+
* @memberof DocumentResponse
|
|
135
|
+
*/
|
|
136
|
+
checkout?: DocumentCheckoutResponse | null;
|
|
130
137
|
}
|
|
131
138
|
/**
|
|
132
139
|
* @export
|
|
@@ -22,6 +22,7 @@ exports.DocumentResponseToJSONTyped = DocumentResponseToJSONTyped;
|
|
|
22
22
|
const DocumentOrigin_1 = require("./DocumentOrigin");
|
|
23
23
|
const TagResponse_1 = require("./TagResponse");
|
|
24
24
|
const DocumentType_1 = require("./DocumentType");
|
|
25
|
+
const DocumentCheckoutResponse_1 = require("./DocumentCheckoutResponse");
|
|
25
26
|
const DocumentVersionResponse_1 = require("./DocumentVersionResponse");
|
|
26
27
|
/**
|
|
27
28
|
* @export
|
|
@@ -94,6 +95,7 @@ function DocumentResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
94
95
|
'updatedAt': (new Date(json['updated_at'])),
|
|
95
96
|
'tags': json['tags'] == null ? undefined : (json['tags'].map(TagResponse_1.TagResponseFromJSON)),
|
|
96
97
|
'canWrite': json['can_write'] == null ? undefined : json['can_write'],
|
|
98
|
+
'checkout': json['checkout'] == null ? undefined : (0, DocumentCheckoutResponse_1.DocumentCheckoutResponseFromJSON)(json['checkout']),
|
|
97
99
|
};
|
|
98
100
|
}
|
|
99
101
|
function DocumentResponseToJSON(json) {
|
|
@@ -122,5 +124,6 @@ function DocumentResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
122
124
|
'updated_at': value['updatedAt'].toISOString(),
|
|
123
125
|
'tags': value['tags'] == null ? undefined : (value['tags'].map(TagResponse_1.TagResponseToJSON)),
|
|
124
126
|
'can_write': value['canWrite'],
|
|
127
|
+
'checkout': (0, DocumentCheckoutResponse_1.DocumentCheckoutResponseToJSON)(value['checkout']),
|
|
125
128
|
};
|
|
126
129
|
}
|
|
@@ -51,11 +51,11 @@ export interface DocumentVersionMetadata {
|
|
|
51
51
|
*/
|
|
52
52
|
hash?: string | null;
|
|
53
53
|
/**
|
|
54
|
-
*
|
|
54
|
+
* Current state of the ingestion pipeline workflow
|
|
55
55
|
* @type {PipelineState}
|
|
56
56
|
* @memberof DocumentVersionMetadata
|
|
57
57
|
*/
|
|
58
|
-
pipelineState?: PipelineState;
|
|
58
|
+
pipelineState?: PipelineState | null;
|
|
59
59
|
/**
|
|
60
60
|
* Total number of pages in the document
|
|
61
61
|
* @type {number}
|
|
@@ -103,11 +103,11 @@ export interface DocumentVersionMetadata {
|
|
|
103
103
|
[key: string]: any;
|
|
104
104
|
}> | null;
|
|
105
105
|
/**
|
|
106
|
-
*
|
|
106
|
+
* Aggregate statistics for the document version (tokens, chunk counts, depth)
|
|
107
107
|
* @type {InformationStatistics}
|
|
108
108
|
* @memberof DocumentVersionMetadata
|
|
109
109
|
*/
|
|
110
|
-
informationStatistics?: InformationStatistics;
|
|
110
|
+
informationStatistics?: InformationStatistics | null;
|
|
111
111
|
/**
|
|
112
112
|
* True once the conversion activity successfully consumed PAGE quota
|
|
113
113
|
* @type {boolean}
|
|
@@ -67,7 +67,7 @@ export interface DocumentVersionMetadataUpdate {
|
|
|
67
67
|
* @type {PipelineState}
|
|
68
68
|
* @memberof DocumentVersionMetadataUpdate
|
|
69
69
|
*/
|
|
70
|
-
pipelineState?: PipelineState;
|
|
70
|
+
pipelineState?: PipelineState | null;
|
|
71
71
|
/**
|
|
72
72
|
*
|
|
73
73
|
* @type {number}
|
|
@@ -119,7 +119,7 @@ export interface DocumentVersionMetadataUpdate {
|
|
|
119
119
|
* @type {InformationStatistics}
|
|
120
120
|
* @memberof DocumentVersionMetadataUpdate
|
|
121
121
|
*/
|
|
122
|
-
informationStatistics?: InformationStatistics;
|
|
122
|
+
informationStatistics?: InformationStatistics | null;
|
|
123
123
|
/**
|
|
124
124
|
*
|
|
125
125
|
* @type {boolean}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Knowledge Stack API
|
|
3
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface EditMemoryChunkRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface EditMemoryChunkRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof EditMemoryChunkRequest
|
|
22
|
+
*/
|
|
23
|
+
body: string;
|
|
24
|
+
}
|
|
25
|
+
export declare const EditMemoryChunkRequestPropertyValidationAttributesMap: {
|
|
26
|
+
[property: string]: {
|
|
27
|
+
maxLength?: number;
|
|
28
|
+
minLength?: number;
|
|
29
|
+
pattern?: string;
|
|
30
|
+
maximum?: number;
|
|
31
|
+
exclusiveMaximum?: boolean;
|
|
32
|
+
minimum?: number;
|
|
33
|
+
exclusiveMinimum?: boolean;
|
|
34
|
+
multipleOf?: number;
|
|
35
|
+
maxItems?: number;
|
|
36
|
+
minItems?: number;
|
|
37
|
+
uniqueItems?: boolean;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* Check if a given object implements the EditMemoryChunkRequest interface.
|
|
42
|
+
*/
|
|
43
|
+
export declare function instanceOfEditMemoryChunkRequest(value: object): value is EditMemoryChunkRequest;
|
|
44
|
+
export declare function EditMemoryChunkRequestFromJSON(json: any): EditMemoryChunkRequest;
|
|
45
|
+
export declare function EditMemoryChunkRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): EditMemoryChunkRequest;
|
|
46
|
+
export declare function EditMemoryChunkRequestToJSON(json: any): EditMemoryChunkRequest;
|
|
47
|
+
export declare function EditMemoryChunkRequestToJSONTyped(value?: EditMemoryChunkRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Knowledge Stack API
|
|
6
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.EditMemoryChunkRequestPropertyValidationAttributesMap = void 0;
|
|
17
|
+
exports.instanceOfEditMemoryChunkRequest = instanceOfEditMemoryChunkRequest;
|
|
18
|
+
exports.EditMemoryChunkRequestFromJSON = EditMemoryChunkRequestFromJSON;
|
|
19
|
+
exports.EditMemoryChunkRequestFromJSONTyped = EditMemoryChunkRequestFromJSONTyped;
|
|
20
|
+
exports.EditMemoryChunkRequestToJSON = EditMemoryChunkRequestToJSON;
|
|
21
|
+
exports.EditMemoryChunkRequestToJSONTyped = EditMemoryChunkRequestToJSONTyped;
|
|
22
|
+
exports.EditMemoryChunkRequestPropertyValidationAttributesMap = {
|
|
23
|
+
body: {
|
|
24
|
+
maxLength: 16384,
|
|
25
|
+
minLength: 1,
|
|
26
|
+
},
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Check if a given object implements the EditMemoryChunkRequest interface.
|
|
30
|
+
*/
|
|
31
|
+
function instanceOfEditMemoryChunkRequest(value) {
|
|
32
|
+
if (!('body' in value) || value['body'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
function EditMemoryChunkRequestFromJSON(json) {
|
|
37
|
+
return EditMemoryChunkRequestFromJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
function EditMemoryChunkRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
40
|
+
if (json == null) {
|
|
41
|
+
return json;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'body': json['body'],
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
function EditMemoryChunkRequestToJSON(json) {
|
|
48
|
+
return EditMemoryChunkRequestToJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
function EditMemoryChunkRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
51
|
+
if (value == null) {
|
|
52
|
+
return value;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'body': value['body'],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Knowledge Stack API
|
|
3
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* One event row, anchored to a path_part subject.
|
|
14
|
+
*
|
|
15
|
+
* ``kind`` is namespaced ``domain.action`` (e.g. ``workflow.approval``,
|
|
16
|
+
* ``document.created``). ``payload`` is the domain-specific structured
|
|
17
|
+
* JSON associated with the event.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface EventResponse
|
|
20
|
+
*/
|
|
21
|
+
export interface EventResponse {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof EventResponse
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof EventResponse
|
|
32
|
+
*/
|
|
33
|
+
subjectPathPartId: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof EventResponse
|
|
38
|
+
*/
|
|
39
|
+
kind: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {Date}
|
|
43
|
+
* @memberof EventResponse
|
|
44
|
+
*/
|
|
45
|
+
ts: Date;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof EventResponse
|
|
50
|
+
*/
|
|
51
|
+
actorUserId: string | null;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {{ [key: string]: any; }}
|
|
55
|
+
* @memberof EventResponse
|
|
56
|
+
*/
|
|
57
|
+
payload: {
|
|
58
|
+
[key: string]: any;
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
export declare const EventResponsePropertyValidationAttributesMap: {
|
|
62
|
+
[property: string]: {
|
|
63
|
+
maxLength?: number;
|
|
64
|
+
minLength?: number;
|
|
65
|
+
pattern?: string;
|
|
66
|
+
maximum?: number;
|
|
67
|
+
exclusiveMaximum?: boolean;
|
|
68
|
+
minimum?: number;
|
|
69
|
+
exclusiveMinimum?: boolean;
|
|
70
|
+
multipleOf?: number;
|
|
71
|
+
maxItems?: number;
|
|
72
|
+
minItems?: number;
|
|
73
|
+
uniqueItems?: boolean;
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
/**
|
|
77
|
+
* Check if a given object implements the EventResponse interface.
|
|
78
|
+
*/
|
|
79
|
+
export declare function instanceOfEventResponse(value: object): value is EventResponse;
|
|
80
|
+
export declare function EventResponseFromJSON(json: any): EventResponse;
|
|
81
|
+
export declare function EventResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): EventResponse;
|
|
82
|
+
export declare function EventResponseToJSON(json: any): EventResponse;
|
|
83
|
+
export declare function EventResponseToJSONTyped(value?: EventResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Knowledge Stack API
|
|
6
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.EventResponsePropertyValidationAttributesMap = void 0;
|
|
17
|
+
exports.instanceOfEventResponse = instanceOfEventResponse;
|
|
18
|
+
exports.EventResponseFromJSON = EventResponseFromJSON;
|
|
19
|
+
exports.EventResponseFromJSONTyped = EventResponseFromJSONTyped;
|
|
20
|
+
exports.EventResponseToJSON = EventResponseToJSON;
|
|
21
|
+
exports.EventResponseToJSONTyped = EventResponseToJSONTyped;
|
|
22
|
+
exports.EventResponsePropertyValidationAttributesMap = {};
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the EventResponse interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfEventResponse(value) {
|
|
27
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('subjectPathPartId' in value) || value['subjectPathPartId'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('kind' in value) || value['kind'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('ts' in value) || value['ts'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('actorUserId' in value) || value['actorUserId'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('payload' in value) || value['payload'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
return true;
|
|
40
|
+
}
|
|
41
|
+
function EventResponseFromJSON(json) {
|
|
42
|
+
return EventResponseFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function EventResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
if (json == null) {
|
|
46
|
+
return json;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'id': json['id'],
|
|
50
|
+
'subjectPathPartId': json['subject_path_part_id'],
|
|
51
|
+
'kind': json['kind'],
|
|
52
|
+
'ts': (new Date(json['ts'])),
|
|
53
|
+
'actorUserId': json['actor_user_id'],
|
|
54
|
+
'payload': json['payload'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
function EventResponseToJSON(json) {
|
|
58
|
+
return EventResponseToJSONTyped(json, false);
|
|
59
|
+
}
|
|
60
|
+
function EventResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
61
|
+
if (value == null) {
|
|
62
|
+
return value;
|
|
63
|
+
}
|
|
64
|
+
return {
|
|
65
|
+
'id': value['id'],
|
|
66
|
+
'subject_path_part_id': value['subjectPathPartId'],
|
|
67
|
+
'kind': value['kind'],
|
|
68
|
+
'ts': value['ts'].toISOString(),
|
|
69
|
+
'actor_user_id': value['actorUserId'],
|
|
70
|
+
'payload': value['payload'],
|
|
71
|
+
};
|
|
72
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Knowledge Stack API
|
|
3
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { MemoryChunkResponse } from './MemoryChunkResponse';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ListMemoryChunksResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface ListMemoryChunksResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<MemoryChunkResponse>}
|
|
22
|
+
* @memberof ListMemoryChunksResponse
|
|
23
|
+
*/
|
|
24
|
+
chunks: Array<MemoryChunkResponse>;
|
|
25
|
+
}
|
|
26
|
+
export declare const ListMemoryChunksResponsePropertyValidationAttributesMap: {
|
|
27
|
+
[property: string]: {
|
|
28
|
+
maxLength?: number;
|
|
29
|
+
minLength?: number;
|
|
30
|
+
pattern?: string;
|
|
31
|
+
maximum?: number;
|
|
32
|
+
exclusiveMaximum?: boolean;
|
|
33
|
+
minimum?: number;
|
|
34
|
+
exclusiveMinimum?: boolean;
|
|
35
|
+
multipleOf?: number;
|
|
36
|
+
maxItems?: number;
|
|
37
|
+
minItems?: number;
|
|
38
|
+
uniqueItems?: boolean;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* Check if a given object implements the ListMemoryChunksResponse interface.
|
|
43
|
+
*/
|
|
44
|
+
export declare function instanceOfListMemoryChunksResponse(value: object): value is ListMemoryChunksResponse;
|
|
45
|
+
export declare function ListMemoryChunksResponseFromJSON(json: any): ListMemoryChunksResponse;
|
|
46
|
+
export declare function ListMemoryChunksResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListMemoryChunksResponse;
|
|
47
|
+
export declare function ListMemoryChunksResponseToJSON(json: any): ListMemoryChunksResponse;
|
|
48
|
+
export declare function ListMemoryChunksResponseToJSONTyped(value?: ListMemoryChunksResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Knowledge Stack API
|
|
6
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.ListMemoryChunksResponsePropertyValidationAttributesMap = void 0;
|
|
17
|
+
exports.instanceOfListMemoryChunksResponse = instanceOfListMemoryChunksResponse;
|
|
18
|
+
exports.ListMemoryChunksResponseFromJSON = ListMemoryChunksResponseFromJSON;
|
|
19
|
+
exports.ListMemoryChunksResponseFromJSONTyped = ListMemoryChunksResponseFromJSONTyped;
|
|
20
|
+
exports.ListMemoryChunksResponseToJSON = ListMemoryChunksResponseToJSON;
|
|
21
|
+
exports.ListMemoryChunksResponseToJSONTyped = ListMemoryChunksResponseToJSONTyped;
|
|
22
|
+
const MemoryChunkResponse_1 = require("./MemoryChunkResponse");
|
|
23
|
+
exports.ListMemoryChunksResponsePropertyValidationAttributesMap = {};
|
|
24
|
+
/**
|
|
25
|
+
* Check if a given object implements the ListMemoryChunksResponse interface.
|
|
26
|
+
*/
|
|
27
|
+
function instanceOfListMemoryChunksResponse(value) {
|
|
28
|
+
if (!('chunks' in value) || value['chunks'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
function ListMemoryChunksResponseFromJSON(json) {
|
|
33
|
+
return ListMemoryChunksResponseFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
function ListMemoryChunksResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'chunks': (json['chunks'].map(MemoryChunkResponse_1.MemoryChunkResponseFromJSON)),
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function ListMemoryChunksResponseToJSON(json) {
|
|
44
|
+
return ListMemoryChunksResponseToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function ListMemoryChunksResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'chunks': (value['chunks'].map(MemoryChunkResponse_1.MemoryChunkResponseToJSON)),
|
|
52
|
+
};
|
|
53
|
+
}
|