@knowledge-stack/ksapi 1.7.0 → 1.8.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 +10 -0
- package/README.md +2 -2
- package/dist/apis/ChunksApi.d.ts +175 -0
- package/dist/apis/ChunksApi.js +203 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/ChunksApi.d.ts +175 -0
- package/dist/esm/apis/ChunksApi.js +199 -0
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/ChunkMetadataInput.d.ts +48 -0
- package/dist/esm/models/ChunkMetadataInput.js +43 -0
- package/dist/esm/models/ChunkMetadataOutput.d.ts +48 -0
- package/dist/esm/models/ChunkMetadataOutput.js +43 -0
- package/dist/esm/models/ChunkResponse.d.ts +115 -0
- package/dist/esm/models/ChunkResponse.js +86 -0
- package/dist/esm/models/ChunkType.d.ts +27 -0
- package/dist/esm/models/ChunkType.js +45 -0
- package/dist/esm/models/CreateChunkRequest.d.ts +73 -0
- package/dist/esm/models/CreateChunkRequest.js +64 -0
- package/dist/esm/models/PasswordResetWithTokenRequest.d.ts +2 -8
- package/dist/esm/models/PasswordResetWithTokenRequest.js +3 -7
- package/dist/esm/models/Polygon.d.ts +65 -0
- package/dist/esm/models/Polygon.js +56 -0
- package/dist/esm/models/PolygonReference.d.ts +54 -0
- package/dist/esm/models/PolygonReference.js +49 -0
- package/dist/esm/models/UpdateChunkContentRequest.d.ts +54 -0
- package/dist/esm/models/UpdateChunkContentRequest.js +51 -0
- package/dist/esm/models/UpdateChunkMetadataRequest.d.ts +48 -0
- package/dist/esm/models/UpdateChunkMetadataRequest.js +45 -0
- package/dist/esm/models/index.d.ts +9 -0
- package/dist/esm/models/index.js +9 -0
- package/dist/models/ChunkMetadataInput.d.ts +48 -0
- package/dist/models/ChunkMetadataInput.js +51 -0
- package/dist/models/ChunkMetadataOutput.d.ts +48 -0
- package/dist/models/ChunkMetadataOutput.js +51 -0
- package/dist/models/ChunkResponse.d.ts +115 -0
- package/dist/models/ChunkResponse.js +94 -0
- package/dist/models/ChunkType.d.ts +27 -0
- package/dist/models/ChunkType.js +53 -0
- package/dist/models/CreateChunkRequest.d.ts +73 -0
- package/dist/models/CreateChunkRequest.js +72 -0
- package/dist/models/PasswordResetWithTokenRequest.d.ts +2 -8
- package/dist/models/PasswordResetWithTokenRequest.js +3 -7
- package/dist/models/Polygon.d.ts +65 -0
- package/dist/models/Polygon.js +64 -0
- package/dist/models/PolygonReference.d.ts +54 -0
- package/dist/models/PolygonReference.js +57 -0
- package/dist/models/UpdateChunkContentRequest.d.ts +54 -0
- package/dist/models/UpdateChunkContentRequest.js +59 -0
- package/dist/models/UpdateChunkMetadataRequest.d.ts +48 -0
- package/dist/models/UpdateChunkMetadataRequest.js +53 -0
- package/dist/models/index.d.ts +9 -0
- package/dist/models/index.js +9 -0
- package/package.json +1 -1
- package/src/apis/ChunksApi.ts +381 -0
- package/src/apis/index.ts +1 -0
- package/src/models/ChunkMetadataInput.ts +90 -0
- package/src/models/ChunkMetadataOutput.ts +90 -0
- package/src/models/ChunkResponse.ts +197 -0
- package/src/models/ChunkType.ts +55 -0
- package/src/models/CreateChunkRequest.ts +138 -0
- package/src/models/PasswordResetWithTokenRequest.ts +5 -14
- package/src/models/Polygon.ts +110 -0
- package/src/models/PolygonReference.ts +100 -0
- package/src/models/UpdateChunkContentRequest.ts +104 -0
- package/src/models/UpdateChunkMetadataRequest.ts +91 -0
- package/src/models/index.ts +9 -0
|
@@ -0,0 +1,104 @@
|
|
|
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 { ChunkType } from './ChunkType';
|
|
17
|
+
import {
|
|
18
|
+
ChunkTypeFromJSON,
|
|
19
|
+
ChunkTypeFromJSONTyped,
|
|
20
|
+
ChunkTypeToJSON,
|
|
21
|
+
ChunkTypeToJSONTyped,
|
|
22
|
+
} from './ChunkType';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Request to update chunk content (creates new content row).
|
|
26
|
+
* @export
|
|
27
|
+
* @interface UpdateChunkContentRequest
|
|
28
|
+
*/
|
|
29
|
+
export interface UpdateChunkContentRequest {
|
|
30
|
+
/**
|
|
31
|
+
* New chunk text content
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof UpdateChunkContentRequest
|
|
34
|
+
*/
|
|
35
|
+
content: string;
|
|
36
|
+
/**
|
|
37
|
+
* New chunk type (null = keep existing type)
|
|
38
|
+
* @type {ChunkType}
|
|
39
|
+
* @memberof UpdateChunkContentRequest
|
|
40
|
+
*/
|
|
41
|
+
chunkType?: ChunkType;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Check if a given object implements the UpdateChunkContentRequest interface.
|
|
48
|
+
*/
|
|
49
|
+
export function instanceOfUpdateChunkContentRequest(value: object): value is UpdateChunkContentRequest {
|
|
50
|
+
if (!('content' in value) || value['content'] === undefined) return false;
|
|
51
|
+
return true;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function UpdateChunkContentRequestFromJSON(json: any): UpdateChunkContentRequest {
|
|
55
|
+
return UpdateChunkContentRequestFromJSONTyped(json, false);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function UpdateChunkContentRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateChunkContentRequest {
|
|
59
|
+
if (json == null) {
|
|
60
|
+
return json;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
|
|
64
|
+
'content': json['content'],
|
|
65
|
+
'chunkType': json['chunk_type'] == null ? undefined : ChunkTypeFromJSON(json['chunk_type']),
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function UpdateChunkContentRequestToJSON(json: any): UpdateChunkContentRequest {
|
|
70
|
+
return UpdateChunkContentRequestToJSONTyped(json, false);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function UpdateChunkContentRequestToJSONTyped(value?: UpdateChunkContentRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
74
|
+
if (value == null) {
|
|
75
|
+
return value;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
return {
|
|
79
|
+
|
|
80
|
+
'content': value['content'],
|
|
81
|
+
'chunk_type': ChunkTypeToJSON(value['chunkType']),
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export const UpdateChunkContentRequestPropertyValidationAttributesMap: {
|
|
86
|
+
[property: string]: {
|
|
87
|
+
maxLength?: number,
|
|
88
|
+
minLength?: number,
|
|
89
|
+
pattern?: string,
|
|
90
|
+
maximum?: number,
|
|
91
|
+
exclusiveMaximum?: boolean,
|
|
92
|
+
minimum?: number,
|
|
93
|
+
exclusiveMinimum?: boolean,
|
|
94
|
+
multipleOf?: number,
|
|
95
|
+
maxItems?: number,
|
|
96
|
+
minItems?: number,
|
|
97
|
+
uniqueItems?: boolean
|
|
98
|
+
}
|
|
99
|
+
} = {
|
|
100
|
+
content: {
|
|
101
|
+
minLength: 1,
|
|
102
|
+
},
|
|
103
|
+
}
|
|
104
|
+
|
|
@@ -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 { ChunkMetadataInput } from './ChunkMetadataInput';
|
|
17
|
+
import {
|
|
18
|
+
ChunkMetadataInputFromJSON,
|
|
19
|
+
ChunkMetadataInputFromJSONTyped,
|
|
20
|
+
ChunkMetadataInputToJSON,
|
|
21
|
+
ChunkMetadataInputToJSONTyped,
|
|
22
|
+
} from './ChunkMetadataInput';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Request to update chunk metadata (merge).
|
|
26
|
+
* @export
|
|
27
|
+
* @interface UpdateChunkMetadataRequest
|
|
28
|
+
*/
|
|
29
|
+
export interface UpdateChunkMetadataRequest {
|
|
30
|
+
/**
|
|
31
|
+
* Metadata to merge into existing chunk_metadata
|
|
32
|
+
* @type {ChunkMetadataInput}
|
|
33
|
+
* @memberof UpdateChunkMetadataRequest
|
|
34
|
+
*/
|
|
35
|
+
chunkMetadata: ChunkMetadataInput;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the UpdateChunkMetadataRequest interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfUpdateChunkMetadataRequest(value: object): value is UpdateChunkMetadataRequest {
|
|
42
|
+
if (!('chunkMetadata' in value) || value['chunkMetadata'] === undefined) return false;
|
|
43
|
+
return true;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function UpdateChunkMetadataRequestFromJSON(json: any): UpdateChunkMetadataRequest {
|
|
47
|
+
return UpdateChunkMetadataRequestFromJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function UpdateChunkMetadataRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateChunkMetadataRequest {
|
|
51
|
+
if (json == null) {
|
|
52
|
+
return json;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
|
|
56
|
+
'chunkMetadata': ChunkMetadataInputFromJSON(json['chunk_metadata']),
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function UpdateChunkMetadataRequestToJSON(json: any): UpdateChunkMetadataRequest {
|
|
61
|
+
return UpdateChunkMetadataRequestToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function UpdateChunkMetadataRequestToJSONTyped(value?: UpdateChunkMetadataRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'chunk_metadata': ChunkMetadataInputToJSON(value['chunkMetadata']),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export const UpdateChunkMetadataRequestPropertyValidationAttributesMap: {
|
|
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
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
+
export * from './ChunkMetadataInput';
|
|
4
|
+
export * from './ChunkMetadataOutput';
|
|
5
|
+
export * from './ChunkResponse';
|
|
6
|
+
export * from './ChunkType';
|
|
7
|
+
export * from './CreateChunkRequest';
|
|
3
8
|
export * from './CreateDocumentRequest';
|
|
4
9
|
export * from './CreateFolderRequest';
|
|
5
10
|
export * from './CreatePasswordUserRequest';
|
|
@@ -31,12 +36,16 @@ export * from './PasswordResetRequest';
|
|
|
31
36
|
export * from './PasswordResetWithTokenRequest';
|
|
32
37
|
export * from './PathOrder';
|
|
33
38
|
export * from './PathPartResponse';
|
|
39
|
+
export * from './Polygon';
|
|
40
|
+
export * from './PolygonReference';
|
|
34
41
|
export * from './RootResponse';
|
|
35
42
|
export * from './SectionResponse';
|
|
36
43
|
export * from './SignInRequest';
|
|
37
44
|
export * from './TenantResponse';
|
|
38
45
|
export * from './TenantUserInTenantResponse';
|
|
39
46
|
export * from './TenantUserRole';
|
|
47
|
+
export * from './UpdateChunkContentRequest';
|
|
48
|
+
export * from './UpdateChunkMetadataRequest';
|
|
40
49
|
export * from './UpdateDocumentRequest';
|
|
41
50
|
export * from './UpdateFolderRequest';
|
|
42
51
|
export * from './UpdateSectionRequest';
|