@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,197 @@
|
|
|
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 { ChunkMetadataOutput } from './ChunkMetadataOutput';
|
|
17
|
+
import {
|
|
18
|
+
ChunkMetadataOutputFromJSON,
|
|
19
|
+
ChunkMetadataOutputFromJSONTyped,
|
|
20
|
+
ChunkMetadataOutputToJSON,
|
|
21
|
+
ChunkMetadataOutputToJSONTyped,
|
|
22
|
+
} from './ChunkMetadataOutput';
|
|
23
|
+
import type { ChunkType } from './ChunkType';
|
|
24
|
+
import {
|
|
25
|
+
ChunkTypeFromJSON,
|
|
26
|
+
ChunkTypeFromJSONTyped,
|
|
27
|
+
ChunkTypeToJSON,
|
|
28
|
+
ChunkTypeToJSONTyped,
|
|
29
|
+
} from './ChunkType';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Chunk response model.
|
|
33
|
+
* @export
|
|
34
|
+
* @interface ChunkResponse
|
|
35
|
+
*/
|
|
36
|
+
export interface ChunkResponse {
|
|
37
|
+
/**
|
|
38
|
+
* Chunk ID
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof ChunkResponse
|
|
41
|
+
*/
|
|
42
|
+
id: string;
|
|
43
|
+
/**
|
|
44
|
+
* PathPart ID
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof ChunkResponse
|
|
47
|
+
*/
|
|
48
|
+
pathPartId: string;
|
|
49
|
+
/**
|
|
50
|
+
* ChunkContent ID
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof ChunkResponse
|
|
53
|
+
*/
|
|
54
|
+
contentId: string;
|
|
55
|
+
/**
|
|
56
|
+
* Chunk text content
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof ChunkResponse
|
|
59
|
+
*/
|
|
60
|
+
content: string;
|
|
61
|
+
/**
|
|
62
|
+
* Type of chunk content
|
|
63
|
+
* @type {ChunkType}
|
|
64
|
+
* @memberof ChunkResponse
|
|
65
|
+
*/
|
|
66
|
+
chunkType: ChunkType;
|
|
67
|
+
/**
|
|
68
|
+
* Chunk metadata
|
|
69
|
+
* @type {ChunkMetadataOutput}
|
|
70
|
+
* @memberof ChunkResponse
|
|
71
|
+
*/
|
|
72
|
+
chunkMetadata: ChunkMetadataOutput;
|
|
73
|
+
/**
|
|
74
|
+
* Parent PathPart ID
|
|
75
|
+
* @type {string}
|
|
76
|
+
* @memberof ChunkResponse
|
|
77
|
+
*/
|
|
78
|
+
parentId: string;
|
|
79
|
+
/**
|
|
80
|
+
* Previous sibling PathPart ID
|
|
81
|
+
* @type {string}
|
|
82
|
+
* @memberof ChunkResponse
|
|
83
|
+
*/
|
|
84
|
+
prevSiblingPathId?: string;
|
|
85
|
+
/**
|
|
86
|
+
* Next sibling PathPart ID
|
|
87
|
+
* @type {string}
|
|
88
|
+
* @memberof ChunkResponse
|
|
89
|
+
*/
|
|
90
|
+
nextSiblingId?: string;
|
|
91
|
+
/**
|
|
92
|
+
* Tenant ID
|
|
93
|
+
* @type {string}
|
|
94
|
+
* @memberof ChunkResponse
|
|
95
|
+
*/
|
|
96
|
+
tenantId: string;
|
|
97
|
+
/**
|
|
98
|
+
* Creation timestamp
|
|
99
|
+
* @type {Date}
|
|
100
|
+
* @memberof ChunkResponse
|
|
101
|
+
*/
|
|
102
|
+
createdAt: Date;
|
|
103
|
+
/**
|
|
104
|
+
* Last update timestamp
|
|
105
|
+
* @type {Date}
|
|
106
|
+
* @memberof ChunkResponse
|
|
107
|
+
*/
|
|
108
|
+
updatedAt: Date;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Check if a given object implements the ChunkResponse interface.
|
|
115
|
+
*/
|
|
116
|
+
export function instanceOfChunkResponse(value: object): value is ChunkResponse {
|
|
117
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
118
|
+
if (!('pathPartId' in value) || value['pathPartId'] === undefined) return false;
|
|
119
|
+
if (!('contentId' in value) || value['contentId'] === undefined) return false;
|
|
120
|
+
if (!('content' in value) || value['content'] === undefined) return false;
|
|
121
|
+
if (!('chunkType' in value) || value['chunkType'] === undefined) return false;
|
|
122
|
+
if (!('chunkMetadata' in value) || value['chunkMetadata'] === undefined) return false;
|
|
123
|
+
if (!('parentId' in value) || value['parentId'] === undefined) return false;
|
|
124
|
+
if (!('tenantId' in value) || value['tenantId'] === undefined) return false;
|
|
125
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
126
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
|
|
127
|
+
return true;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
export function ChunkResponseFromJSON(json: any): ChunkResponse {
|
|
131
|
+
return ChunkResponseFromJSONTyped(json, false);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
export function ChunkResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChunkResponse {
|
|
135
|
+
if (json == null) {
|
|
136
|
+
return json;
|
|
137
|
+
}
|
|
138
|
+
return {
|
|
139
|
+
|
|
140
|
+
'id': json['id'],
|
|
141
|
+
'pathPartId': json['path_part_id'],
|
|
142
|
+
'contentId': json['content_id'],
|
|
143
|
+
'content': json['content'],
|
|
144
|
+
'chunkType': ChunkTypeFromJSON(json['chunk_type']),
|
|
145
|
+
'chunkMetadata': ChunkMetadataOutputFromJSON(json['chunk_metadata']),
|
|
146
|
+
'parentId': json['parent_id'],
|
|
147
|
+
'prevSiblingPathId': json['prev_sibling_path_id'] == null ? undefined : json['prev_sibling_path_id'],
|
|
148
|
+
'nextSiblingId': json['next_sibling_id'] == null ? undefined : json['next_sibling_id'],
|
|
149
|
+
'tenantId': json['tenant_id'],
|
|
150
|
+
'createdAt': (new Date(json['created_at'])),
|
|
151
|
+
'updatedAt': (new Date(json['updated_at'])),
|
|
152
|
+
};
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
export function ChunkResponseToJSON(json: any): ChunkResponse {
|
|
156
|
+
return ChunkResponseToJSONTyped(json, false);
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
export function ChunkResponseToJSONTyped(value?: ChunkResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
160
|
+
if (value == null) {
|
|
161
|
+
return value;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
return {
|
|
165
|
+
|
|
166
|
+
'id': value['id'],
|
|
167
|
+
'path_part_id': value['pathPartId'],
|
|
168
|
+
'content_id': value['contentId'],
|
|
169
|
+
'content': value['content'],
|
|
170
|
+
'chunk_type': ChunkTypeToJSON(value['chunkType']),
|
|
171
|
+
'chunk_metadata': ChunkMetadataOutputToJSON(value['chunkMetadata']),
|
|
172
|
+
'parent_id': value['parentId'],
|
|
173
|
+
'prev_sibling_path_id': value['prevSiblingPathId'],
|
|
174
|
+
'next_sibling_id': value['nextSiblingId'],
|
|
175
|
+
'tenant_id': value['tenantId'],
|
|
176
|
+
'created_at': value['createdAt'].toISOString(),
|
|
177
|
+
'updated_at': value['updatedAt'].toISOString(),
|
|
178
|
+
};
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
export const ChunkResponsePropertyValidationAttributesMap: {
|
|
182
|
+
[property: string]: {
|
|
183
|
+
maxLength?: number,
|
|
184
|
+
minLength?: number,
|
|
185
|
+
pattern?: string,
|
|
186
|
+
maximum?: number,
|
|
187
|
+
exclusiveMaximum?: boolean,
|
|
188
|
+
minimum?: number,
|
|
189
|
+
exclusiveMinimum?: boolean,
|
|
190
|
+
multipleOf?: number,
|
|
191
|
+
maxItems?: number,
|
|
192
|
+
minItems?: number,
|
|
193
|
+
uniqueItems?: boolean
|
|
194
|
+
}
|
|
195
|
+
} = {
|
|
196
|
+
}
|
|
197
|
+
|
|
@@ -0,0 +1,55 @@
|
|
|
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
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Type of chunk content.
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const ChunkType = {
|
|
21
|
+
Text: 'TEXT',
|
|
22
|
+
Table: 'TABLE',
|
|
23
|
+
Image: 'IMAGE',
|
|
24
|
+
Unknown: 'UNKNOWN'
|
|
25
|
+
} as const;
|
|
26
|
+
export type ChunkType = typeof ChunkType[keyof typeof ChunkType];
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
export function instanceOfChunkType(value: any): boolean {
|
|
30
|
+
for (const key in ChunkType) {
|
|
31
|
+
if (Object.prototype.hasOwnProperty.call(ChunkType, key)) {
|
|
32
|
+
if (ChunkType[key as keyof typeof ChunkType] === value) {
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
return false;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export function ChunkTypeFromJSON(json: any): ChunkType {
|
|
41
|
+
return ChunkTypeFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export function ChunkTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChunkType {
|
|
45
|
+
return json as ChunkType;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export function ChunkTypeToJSON(value?: ChunkType | null): any {
|
|
49
|
+
return value as any;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function ChunkTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): ChunkType {
|
|
53
|
+
return value as ChunkType;
|
|
54
|
+
}
|
|
55
|
+
|
|
@@ -0,0 +1,138 @@
|
|
|
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
|
+
import type { ChunkType } from './ChunkType';
|
|
24
|
+
import {
|
|
25
|
+
ChunkTypeFromJSON,
|
|
26
|
+
ChunkTypeFromJSONTyped,
|
|
27
|
+
ChunkTypeToJSON,
|
|
28
|
+
ChunkTypeToJSONTyped,
|
|
29
|
+
} from './ChunkType';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Request to create a new chunk.
|
|
33
|
+
* @export
|
|
34
|
+
* @interface CreateChunkRequest
|
|
35
|
+
*/
|
|
36
|
+
export interface CreateChunkRequest {
|
|
37
|
+
/**
|
|
38
|
+
* Parent PathPart ID (must be DOCUMENT_VERSION or SECTION)
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof CreateChunkRequest
|
|
41
|
+
*/
|
|
42
|
+
parentPathId: string;
|
|
43
|
+
/**
|
|
44
|
+
* Chunk text content
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof CreateChunkRequest
|
|
47
|
+
*/
|
|
48
|
+
content: string;
|
|
49
|
+
/**
|
|
50
|
+
* Type of chunk content (TEXT, TABLE, IMAGE, UNKNOWN)
|
|
51
|
+
* @type {ChunkType}
|
|
52
|
+
* @memberof CreateChunkRequest
|
|
53
|
+
*/
|
|
54
|
+
chunkType: ChunkType;
|
|
55
|
+
/**
|
|
56
|
+
* Chunk metadata as JSON (title, description, etc.)
|
|
57
|
+
* @type {ChunkMetadataInput}
|
|
58
|
+
* @memberof CreateChunkRequest
|
|
59
|
+
*/
|
|
60
|
+
chunkMetadata: ChunkMetadataInput;
|
|
61
|
+
/**
|
|
62
|
+
* PathPart ID to insert after (null = append to tail)
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof CreateChunkRequest
|
|
65
|
+
*/
|
|
66
|
+
prevSiblingPathId?: string;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Check if a given object implements the CreateChunkRequest interface.
|
|
73
|
+
*/
|
|
74
|
+
export function instanceOfCreateChunkRequest(value: object): value is CreateChunkRequest {
|
|
75
|
+
if (!('parentPathId' in value) || value['parentPathId'] === undefined) return false;
|
|
76
|
+
if (!('content' in value) || value['content'] === undefined) return false;
|
|
77
|
+
if (!('chunkType' in value) || value['chunkType'] === undefined) return false;
|
|
78
|
+
if (!('chunkMetadata' in value) || value['chunkMetadata'] === undefined) return false;
|
|
79
|
+
return true;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export function CreateChunkRequestFromJSON(json: any): CreateChunkRequest {
|
|
83
|
+
return CreateChunkRequestFromJSONTyped(json, false);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export function CreateChunkRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateChunkRequest {
|
|
87
|
+
if (json == null) {
|
|
88
|
+
return json;
|
|
89
|
+
}
|
|
90
|
+
return {
|
|
91
|
+
|
|
92
|
+
'parentPathId': json['parent_path_id'],
|
|
93
|
+
'content': json['content'],
|
|
94
|
+
'chunkType': ChunkTypeFromJSON(json['chunk_type']),
|
|
95
|
+
'chunkMetadata': ChunkMetadataInputFromJSON(json['chunk_metadata']),
|
|
96
|
+
'prevSiblingPathId': json['prev_sibling_path_id'] == null ? undefined : json['prev_sibling_path_id'],
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export function CreateChunkRequestToJSON(json: any): CreateChunkRequest {
|
|
101
|
+
return CreateChunkRequestToJSONTyped(json, false);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export function CreateChunkRequestToJSONTyped(value?: CreateChunkRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
105
|
+
if (value == null) {
|
|
106
|
+
return value;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
return {
|
|
110
|
+
|
|
111
|
+
'parent_path_id': value['parentPathId'],
|
|
112
|
+
'content': value['content'],
|
|
113
|
+
'chunk_type': ChunkTypeToJSON(value['chunkType']),
|
|
114
|
+
'chunk_metadata': ChunkMetadataInputToJSON(value['chunkMetadata']),
|
|
115
|
+
'prev_sibling_path_id': value['prevSiblingPathId'],
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export const CreateChunkRequestPropertyValidationAttributesMap: {
|
|
120
|
+
[property: string]: {
|
|
121
|
+
maxLength?: number,
|
|
122
|
+
minLength?: number,
|
|
123
|
+
pattern?: string,
|
|
124
|
+
maximum?: number,
|
|
125
|
+
exclusiveMaximum?: boolean,
|
|
126
|
+
minimum?: number,
|
|
127
|
+
exclusiveMinimum?: boolean,
|
|
128
|
+
multipleOf?: number,
|
|
129
|
+
maxItems?: number,
|
|
130
|
+
minItems?: number,
|
|
131
|
+
uniqueItems?: boolean
|
|
132
|
+
}
|
|
133
|
+
} = {
|
|
134
|
+
content: {
|
|
135
|
+
minLength: 1,
|
|
136
|
+
},
|
|
137
|
+
}
|
|
138
|
+
|
|
@@ -20,32 +20,25 @@ import { mapValues } from '../runtime';
|
|
|
20
20
|
*/
|
|
21
21
|
export interface PasswordResetWithTokenRequest {
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* Email verification token
|
|
24
24
|
* @type {string}
|
|
25
25
|
* @memberof PasswordResetWithTokenRequest
|
|
26
26
|
*/
|
|
27
|
-
|
|
27
|
+
emailToken: string;
|
|
28
28
|
/**
|
|
29
29
|
* New password
|
|
30
30
|
* @type {string}
|
|
31
31
|
* @memberof PasswordResetWithTokenRequest
|
|
32
32
|
*/
|
|
33
33
|
newPassword: string;
|
|
34
|
-
/**
|
|
35
|
-
* Email verification token
|
|
36
|
-
* @type {string}
|
|
37
|
-
* @memberof PasswordResetWithTokenRequest
|
|
38
|
-
*/
|
|
39
|
-
emailToken: string;
|
|
40
34
|
}
|
|
41
35
|
|
|
42
36
|
/**
|
|
43
37
|
* Check if a given object implements the PasswordResetWithTokenRequest interface.
|
|
44
38
|
*/
|
|
45
39
|
export function instanceOfPasswordResetWithTokenRequest(value: object): value is PasswordResetWithTokenRequest {
|
|
46
|
-
if (!('oldPassword' in value) || value['oldPassword'] === undefined) return false;
|
|
47
|
-
if (!('newPassword' in value) || value['newPassword'] === undefined) return false;
|
|
48
40
|
if (!('emailToken' in value) || value['emailToken'] === undefined) return false;
|
|
41
|
+
if (!('newPassword' in value) || value['newPassword'] === undefined) return false;
|
|
49
42
|
return true;
|
|
50
43
|
}
|
|
51
44
|
|
|
@@ -59,9 +52,8 @@ export function PasswordResetWithTokenRequestFromJSONTyped(json: any, ignoreDisc
|
|
|
59
52
|
}
|
|
60
53
|
return {
|
|
61
54
|
|
|
62
|
-
'oldPassword': json['old_password'],
|
|
63
|
-
'newPassword': json['new_password'],
|
|
64
55
|
'emailToken': json['email_token'],
|
|
56
|
+
'newPassword': json['new_password'],
|
|
65
57
|
};
|
|
66
58
|
}
|
|
67
59
|
|
|
@@ -76,9 +68,8 @@ export function PasswordResetWithTokenRequestToJSONTyped(value?: PasswordResetWi
|
|
|
76
68
|
|
|
77
69
|
return {
|
|
78
70
|
|
|
79
|
-
'old_password': value['oldPassword'],
|
|
80
|
-
'new_password': value['newPassword'],
|
|
81
71
|
'email_token': value['emailToken'],
|
|
72
|
+
'new_password': value['newPassword'],
|
|
82
73
|
};
|
|
83
74
|
}
|
|
84
75
|
|
|
@@ -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
|
+
* Bounding box polygon.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface Polygon
|
|
20
|
+
*/
|
|
21
|
+
export interface Polygon {
|
|
22
|
+
/**
|
|
23
|
+
* The x-coordinate of the top-left corner of the bounding box.
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof Polygon
|
|
26
|
+
*/
|
|
27
|
+
x: number;
|
|
28
|
+
/**
|
|
29
|
+
* The y-coordinate of the top-left corner of the bounding box.
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof Polygon
|
|
32
|
+
*/
|
|
33
|
+
y: number;
|
|
34
|
+
/**
|
|
35
|
+
* The width of the bounding box.
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof Polygon
|
|
38
|
+
*/
|
|
39
|
+
width: number;
|
|
40
|
+
/**
|
|
41
|
+
* The height of the bounding box.
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof Polygon
|
|
44
|
+
*/
|
|
45
|
+
height: number;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the Polygon interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfPolygon(value: object): value is Polygon {
|
|
52
|
+
if (!('x' in value) || value['x'] === undefined) return false;
|
|
53
|
+
if (!('y' in value) || value['y'] === undefined) return false;
|
|
54
|
+
if (!('width' in value) || value['width'] === undefined) return false;
|
|
55
|
+
if (!('height' in value) || value['height'] === undefined) return false;
|
|
56
|
+
return true;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function PolygonFromJSON(json: any): Polygon {
|
|
60
|
+
return PolygonFromJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function PolygonFromJSONTyped(json: any, ignoreDiscriminator: boolean): Polygon {
|
|
64
|
+
if (json == null) {
|
|
65
|
+
return json;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'x': json['x'],
|
|
70
|
+
'y': json['y'],
|
|
71
|
+
'width': json['width'],
|
|
72
|
+
'height': json['height'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function PolygonToJSON(json: any): Polygon {
|
|
77
|
+
return PolygonToJSONTyped(json, false);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function PolygonToJSONTyped(value?: Polygon | null, ignoreDiscriminator: boolean = false): any {
|
|
81
|
+
if (value == null) {
|
|
82
|
+
return value;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
return {
|
|
86
|
+
|
|
87
|
+
'x': value['x'],
|
|
88
|
+
'y': value['y'],
|
|
89
|
+
'width': value['width'],
|
|
90
|
+
'height': value['height'],
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export const PolygonPropertyValidationAttributesMap: {
|
|
95
|
+
[property: string]: {
|
|
96
|
+
maxLength?: number,
|
|
97
|
+
minLength?: number,
|
|
98
|
+
pattern?: string,
|
|
99
|
+
maximum?: number,
|
|
100
|
+
exclusiveMaximum?: boolean,
|
|
101
|
+
minimum?: number,
|
|
102
|
+
exclusiveMinimum?: boolean,
|
|
103
|
+
multipleOf?: number,
|
|
104
|
+
maxItems?: number,
|
|
105
|
+
minItems?: number,
|
|
106
|
+
uniqueItems?: boolean
|
|
107
|
+
}
|
|
108
|
+
} = {
|
|
109
|
+
}
|
|
110
|
+
|
|
@@ -0,0 +1,100 @@
|
|
|
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 { Polygon } from './Polygon';
|
|
17
|
+
import {
|
|
18
|
+
PolygonFromJSON,
|
|
19
|
+
PolygonFromJSONTyped,
|
|
20
|
+
PolygonToJSON,
|
|
21
|
+
PolygonToJSONTyped,
|
|
22
|
+
} from './Polygon';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Reference to a polygon on a specific page.
|
|
26
|
+
* @export
|
|
27
|
+
* @interface PolygonReference
|
|
28
|
+
*/
|
|
29
|
+
export interface PolygonReference {
|
|
30
|
+
/**
|
|
31
|
+
* The page number of the source document where the polygon is located.
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof PolygonReference
|
|
34
|
+
*/
|
|
35
|
+
page: number;
|
|
36
|
+
/**
|
|
37
|
+
* The bounding box of the polygon.
|
|
38
|
+
* @type {Polygon}
|
|
39
|
+
* @memberof PolygonReference
|
|
40
|
+
*/
|
|
41
|
+
polygon: Polygon;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the PolygonReference interface.
|
|
46
|
+
*/
|
|
47
|
+
export function instanceOfPolygonReference(value: object): value is PolygonReference {
|
|
48
|
+
if (!('page' in value) || value['page'] === undefined) return false;
|
|
49
|
+
if (!('polygon' in value) || value['polygon'] === undefined) return false;
|
|
50
|
+
return true;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function PolygonReferenceFromJSON(json: any): PolygonReference {
|
|
54
|
+
return PolygonReferenceFromJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export function PolygonReferenceFromJSONTyped(json: any, ignoreDiscriminator: boolean): PolygonReference {
|
|
58
|
+
if (json == null) {
|
|
59
|
+
return json;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'page': json['page'],
|
|
64
|
+
'polygon': PolygonFromJSON(json['polygon']),
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function PolygonReferenceToJSON(json: any): PolygonReference {
|
|
69
|
+
return PolygonReferenceToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function PolygonReferenceToJSONTyped(value?: PolygonReference | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'page': value['page'],
|
|
80
|
+
'polygon': PolygonToJSON(value['polygon']),
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export const PolygonReferencePropertyValidationAttributesMap: {
|
|
85
|
+
[property: string]: {
|
|
86
|
+
maxLength?: number,
|
|
87
|
+
minLength?: number,
|
|
88
|
+
pattern?: string,
|
|
89
|
+
maximum?: number,
|
|
90
|
+
exclusiveMaximum?: boolean,
|
|
91
|
+
minimum?: number,
|
|
92
|
+
exclusiveMinimum?: boolean,
|
|
93
|
+
multipleOf?: number,
|
|
94
|
+
maxItems?: number,
|
|
95
|
+
minItems?: number,
|
|
96
|
+
uniqueItems?: boolean
|
|
97
|
+
}
|
|
98
|
+
} = {
|
|
99
|
+
}
|
|
100
|
+
|