@knowledge-stack/ksapi 1.6.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.
Files changed (93) hide show
  1. package/.openapi-generator/FILES +14 -0
  2. package/README.md +2 -2
  3. package/dist/apis/ChunksApi.d.ts +175 -0
  4. package/dist/apis/ChunksApi.js +203 -0
  5. package/dist/apis/PathPartsApi.d.ts +30 -1
  6. package/dist/apis/PathPartsApi.js +32 -0
  7. package/dist/apis/SectionsApi.d.ts +144 -0
  8. package/dist/apis/SectionsApi.js +166 -0
  9. package/dist/apis/index.d.ts +2 -0
  10. package/dist/apis/index.js +2 -0
  11. package/dist/esm/apis/ChunksApi.d.ts +175 -0
  12. package/dist/esm/apis/ChunksApi.js +199 -0
  13. package/dist/esm/apis/PathPartsApi.d.ts +30 -1
  14. package/dist/esm/apis/PathPartsApi.js +33 -1
  15. package/dist/esm/apis/SectionsApi.d.ts +144 -0
  16. package/dist/esm/apis/SectionsApi.js +162 -0
  17. package/dist/esm/apis/index.d.ts +2 -0
  18. package/dist/esm/apis/index.js +2 -0
  19. package/dist/esm/models/ChunkMetadataInput.d.ts +48 -0
  20. package/dist/esm/models/ChunkMetadataInput.js +43 -0
  21. package/dist/esm/models/ChunkMetadataOutput.d.ts +48 -0
  22. package/dist/esm/models/ChunkMetadataOutput.js +43 -0
  23. package/dist/esm/models/ChunkResponse.d.ts +115 -0
  24. package/dist/esm/models/ChunkResponse.js +86 -0
  25. package/dist/esm/models/ChunkType.d.ts +27 -0
  26. package/dist/esm/models/ChunkType.js +45 -0
  27. package/dist/esm/models/CreateChunkRequest.d.ts +73 -0
  28. package/dist/esm/models/CreateChunkRequest.js +64 -0
  29. package/dist/esm/models/CreateSectionRequest.d.ts +65 -0
  30. package/dist/esm/models/CreateSectionRequest.js +57 -0
  31. package/dist/esm/models/PasswordResetWithTokenRequest.d.ts +2 -8
  32. package/dist/esm/models/PasswordResetWithTokenRequest.js +3 -7
  33. package/dist/esm/models/Polygon.d.ts +65 -0
  34. package/dist/esm/models/Polygon.js +56 -0
  35. package/dist/esm/models/PolygonReference.d.ts +54 -0
  36. package/dist/esm/models/PolygonReference.js +49 -0
  37. package/dist/esm/models/SectionResponse.d.ts +101 -0
  38. package/dist/esm/models/SectionResponse.js +74 -0
  39. package/dist/esm/models/UpdateChunkContentRequest.d.ts +54 -0
  40. package/dist/esm/models/UpdateChunkContentRequest.js +51 -0
  41. package/dist/esm/models/UpdateChunkMetadataRequest.d.ts +48 -0
  42. package/dist/esm/models/UpdateChunkMetadataRequest.js +45 -0
  43. package/dist/esm/models/UpdateSectionRequest.d.ts +65 -0
  44. package/dist/esm/models/UpdateSectionRequest.js +53 -0
  45. package/dist/esm/models/index.d.ts +12 -0
  46. package/dist/esm/models/index.js +12 -0
  47. package/dist/models/ChunkMetadataInput.d.ts +48 -0
  48. package/dist/models/ChunkMetadataInput.js +51 -0
  49. package/dist/models/ChunkMetadataOutput.d.ts +48 -0
  50. package/dist/models/ChunkMetadataOutput.js +51 -0
  51. package/dist/models/ChunkResponse.d.ts +115 -0
  52. package/dist/models/ChunkResponse.js +94 -0
  53. package/dist/models/ChunkType.d.ts +27 -0
  54. package/dist/models/ChunkType.js +53 -0
  55. package/dist/models/CreateChunkRequest.d.ts +73 -0
  56. package/dist/models/CreateChunkRequest.js +72 -0
  57. package/dist/models/CreateSectionRequest.d.ts +65 -0
  58. package/dist/models/CreateSectionRequest.js +65 -0
  59. package/dist/models/PasswordResetWithTokenRequest.d.ts +2 -8
  60. package/dist/models/PasswordResetWithTokenRequest.js +3 -7
  61. package/dist/models/Polygon.d.ts +65 -0
  62. package/dist/models/Polygon.js +64 -0
  63. package/dist/models/PolygonReference.d.ts +54 -0
  64. package/dist/models/PolygonReference.js +57 -0
  65. package/dist/models/SectionResponse.d.ts +101 -0
  66. package/dist/models/SectionResponse.js +82 -0
  67. package/dist/models/UpdateChunkContentRequest.d.ts +54 -0
  68. package/dist/models/UpdateChunkContentRequest.js +59 -0
  69. package/dist/models/UpdateChunkMetadataRequest.d.ts +48 -0
  70. package/dist/models/UpdateChunkMetadataRequest.js +53 -0
  71. package/dist/models/UpdateSectionRequest.d.ts +65 -0
  72. package/dist/models/UpdateSectionRequest.js +61 -0
  73. package/dist/models/index.d.ts +12 -0
  74. package/dist/models/index.js +12 -0
  75. package/package.json +1 -1
  76. package/src/apis/ChunksApi.ts +381 -0
  77. package/src/apis/PathPartsApi.ts +64 -0
  78. package/src/apis/SectionsApi.ts +305 -0
  79. package/src/apis/index.ts +2 -0
  80. package/src/models/ChunkMetadataInput.ts +90 -0
  81. package/src/models/ChunkMetadataOutput.ts +90 -0
  82. package/src/models/ChunkResponse.ts +197 -0
  83. package/src/models/ChunkType.ts +55 -0
  84. package/src/models/CreateChunkRequest.ts +138 -0
  85. package/src/models/CreateSectionRequest.ts +112 -0
  86. package/src/models/PasswordResetWithTokenRequest.ts +5 -14
  87. package/src/models/Polygon.ts +110 -0
  88. package/src/models/PolygonReference.ts +100 -0
  89. package/src/models/SectionResponse.ts +161 -0
  90. package/src/models/UpdateChunkContentRequest.ts +104 -0
  91. package/src/models/UpdateChunkMetadataRequest.ts +91 -0
  92. package/src/models/UpdateSectionRequest.ts +110 -0
  93. package/src/models/index.ts +12 -0
@@ -0,0 +1,57 @@
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
+ * Check if a given object implements the CreateSectionRequest interface.
16
+ */
17
+ export function instanceOfCreateSectionRequest(value) {
18
+ if (!('name' in value) || value['name'] === undefined)
19
+ return false;
20
+ if (!('parentPathId' in value) || value['parentPathId'] === undefined)
21
+ return false;
22
+ return true;
23
+ }
24
+ export function CreateSectionRequestFromJSON(json) {
25
+ return CreateSectionRequestFromJSONTyped(json, false);
26
+ }
27
+ export function CreateSectionRequestFromJSONTyped(json, ignoreDiscriminator) {
28
+ if (json == null) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'name': json['name'],
33
+ 'parentPathId': json['parent_path_id'],
34
+ 'pageNumber': json['page_number'] == null ? undefined : json['page_number'],
35
+ 'prevSiblingPathId': json['prev_sibling_path_id'] == null ? undefined : json['prev_sibling_path_id'],
36
+ };
37
+ }
38
+ export function CreateSectionRequestToJSON(json) {
39
+ return CreateSectionRequestToJSONTyped(json, false);
40
+ }
41
+ export function CreateSectionRequestToJSONTyped(value, ignoreDiscriminator = false) {
42
+ if (value == null) {
43
+ return value;
44
+ }
45
+ return {
46
+ 'name': value['name'],
47
+ 'parent_path_id': value['parentPathId'],
48
+ 'page_number': value['pageNumber'],
49
+ 'prev_sibling_path_id': value['prevSiblingPathId'],
50
+ };
51
+ }
52
+ export const CreateSectionRequestPropertyValidationAttributesMap = {
53
+ name: {
54
+ maxLength: 255,
55
+ minLength: 1,
56
+ },
57
+ };
@@ -16,23 +16,17 @@
16
16
  */
17
17
  export interface PasswordResetWithTokenRequest {
18
18
  /**
19
- * Old password
19
+ * Email verification token
20
20
  * @type {string}
21
21
  * @memberof PasswordResetWithTokenRequest
22
22
  */
23
- oldPassword: string;
23
+ emailToken: string;
24
24
  /**
25
25
  * New password
26
26
  * @type {string}
27
27
  * @memberof PasswordResetWithTokenRequest
28
28
  */
29
29
  newPassword: string;
30
- /**
31
- * Email verification token
32
- * @type {string}
33
- * @memberof PasswordResetWithTokenRequest
34
- */
35
- emailToken: string;
36
30
  }
37
31
  /**
38
32
  * Check if a given object implements the PasswordResetWithTokenRequest interface.
@@ -15,12 +15,10 @@
15
15
  * Check if a given object implements the PasswordResetWithTokenRequest interface.
16
16
  */
17
17
  export function instanceOfPasswordResetWithTokenRequest(value) {
18
- if (!('oldPassword' in value) || value['oldPassword'] === undefined)
18
+ if (!('emailToken' in value) || value['emailToken'] === undefined)
19
19
  return false;
20
20
  if (!('newPassword' in value) || value['newPassword'] === undefined)
21
21
  return false;
22
- if (!('emailToken' in value) || value['emailToken'] === undefined)
23
- return false;
24
22
  return true;
25
23
  }
26
24
  export function PasswordResetWithTokenRequestFromJSON(json) {
@@ -31,9 +29,8 @@ export function PasswordResetWithTokenRequestFromJSONTyped(json, ignoreDiscrimin
31
29
  return json;
32
30
  }
33
31
  return {
34
- 'oldPassword': json['old_password'],
35
- 'newPassword': json['new_password'],
36
32
  'emailToken': json['email_token'],
33
+ 'newPassword': json['new_password'],
37
34
  };
38
35
  }
39
36
  export function PasswordResetWithTokenRequestToJSON(json) {
@@ -44,9 +41,8 @@ export function PasswordResetWithTokenRequestToJSONTyped(value, ignoreDiscrimina
44
41
  return value;
45
42
  }
46
43
  return {
47
- 'old_password': value['oldPassword'],
48
- 'new_password': value['newPassword'],
49
44
  'email_token': value['emailToken'],
45
+ 'new_password': value['newPassword'],
50
46
  };
51
47
  }
52
48
  export const PasswordResetWithTokenRequestPropertyValidationAttributesMap = {
@@ -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
+ * Bounding box polygon.
14
+ * @export
15
+ * @interface Polygon
16
+ */
17
+ export interface Polygon {
18
+ /**
19
+ * The x-coordinate of the top-left corner of the bounding box.
20
+ * @type {number}
21
+ * @memberof Polygon
22
+ */
23
+ x: number;
24
+ /**
25
+ * The y-coordinate of the top-left corner of the bounding box.
26
+ * @type {number}
27
+ * @memberof Polygon
28
+ */
29
+ y: number;
30
+ /**
31
+ * The width of the bounding box.
32
+ * @type {number}
33
+ * @memberof Polygon
34
+ */
35
+ width: number;
36
+ /**
37
+ * The height of the bounding box.
38
+ * @type {number}
39
+ * @memberof Polygon
40
+ */
41
+ height: number;
42
+ }
43
+ /**
44
+ * Check if a given object implements the Polygon interface.
45
+ */
46
+ export declare function instanceOfPolygon(value: object): value is Polygon;
47
+ export declare function PolygonFromJSON(json: any): Polygon;
48
+ export declare function PolygonFromJSONTyped(json: any, ignoreDiscriminator: boolean): Polygon;
49
+ export declare function PolygonToJSON(json: any): Polygon;
50
+ export declare function PolygonToJSONTyped(value?: Polygon | null, ignoreDiscriminator?: boolean): any;
51
+ export declare const PolygonPropertyValidationAttributesMap: {
52
+ [property: string]: {
53
+ maxLength?: number;
54
+ minLength?: number;
55
+ pattern?: string;
56
+ maximum?: number;
57
+ exclusiveMaximum?: boolean;
58
+ minimum?: number;
59
+ exclusiveMinimum?: boolean;
60
+ multipleOf?: number;
61
+ maxItems?: number;
62
+ minItems?: number;
63
+ uniqueItems?: boolean;
64
+ };
65
+ };
@@ -0,0 +1,56 @@
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
+ * Check if a given object implements the Polygon interface.
16
+ */
17
+ export function instanceOfPolygon(value) {
18
+ if (!('x' in value) || value['x'] === undefined)
19
+ return false;
20
+ if (!('y' in value) || value['y'] === undefined)
21
+ return false;
22
+ if (!('width' in value) || value['width'] === undefined)
23
+ return false;
24
+ if (!('height' in value) || value['height'] === undefined)
25
+ return false;
26
+ return true;
27
+ }
28
+ export function PolygonFromJSON(json) {
29
+ return PolygonFromJSONTyped(json, false);
30
+ }
31
+ export function PolygonFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'x': json['x'],
37
+ 'y': json['y'],
38
+ 'width': json['width'],
39
+ 'height': json['height'],
40
+ };
41
+ }
42
+ export function PolygonToJSON(json) {
43
+ return PolygonToJSONTyped(json, false);
44
+ }
45
+ export function PolygonToJSONTyped(value, ignoreDiscriminator = false) {
46
+ if (value == null) {
47
+ return value;
48
+ }
49
+ return {
50
+ 'x': value['x'],
51
+ 'y': value['y'],
52
+ 'width': value['width'],
53
+ 'height': value['height'],
54
+ };
55
+ }
56
+ export const PolygonPropertyValidationAttributesMap = {};
@@ -0,0 +1,54 @@
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 { Polygon } from './Polygon';
13
+ /**
14
+ * Reference to a polygon on a specific page.
15
+ * @export
16
+ * @interface PolygonReference
17
+ */
18
+ export interface PolygonReference {
19
+ /**
20
+ * The page number of the source document where the polygon is located.
21
+ * @type {number}
22
+ * @memberof PolygonReference
23
+ */
24
+ page: number;
25
+ /**
26
+ * The bounding box of the polygon.
27
+ * @type {Polygon}
28
+ * @memberof PolygonReference
29
+ */
30
+ polygon: Polygon;
31
+ }
32
+ /**
33
+ * Check if a given object implements the PolygonReference interface.
34
+ */
35
+ export declare function instanceOfPolygonReference(value: object): value is PolygonReference;
36
+ export declare function PolygonReferenceFromJSON(json: any): PolygonReference;
37
+ export declare function PolygonReferenceFromJSONTyped(json: any, ignoreDiscriminator: boolean): PolygonReference;
38
+ export declare function PolygonReferenceToJSON(json: any): PolygonReference;
39
+ export declare function PolygonReferenceToJSONTyped(value?: PolygonReference | null, ignoreDiscriminator?: boolean): any;
40
+ export declare const PolygonReferencePropertyValidationAttributesMap: {
41
+ [property: string]: {
42
+ maxLength?: number;
43
+ minLength?: number;
44
+ pattern?: string;
45
+ maximum?: number;
46
+ exclusiveMaximum?: boolean;
47
+ minimum?: number;
48
+ exclusiveMinimum?: boolean;
49
+ multipleOf?: number;
50
+ maxItems?: number;
51
+ minItems?: number;
52
+ uniqueItems?: boolean;
53
+ };
54
+ };
@@ -0,0 +1,49 @@
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
+ import { PolygonFromJSON, PolygonToJSON, } from './Polygon';
15
+ /**
16
+ * Check if a given object implements the PolygonReference interface.
17
+ */
18
+ export function instanceOfPolygonReference(value) {
19
+ if (!('page' in value) || value['page'] === undefined)
20
+ return false;
21
+ if (!('polygon' in value) || value['polygon'] === undefined)
22
+ return false;
23
+ return true;
24
+ }
25
+ export function PolygonReferenceFromJSON(json) {
26
+ return PolygonReferenceFromJSONTyped(json, false);
27
+ }
28
+ export function PolygonReferenceFromJSONTyped(json, ignoreDiscriminator) {
29
+ if (json == null) {
30
+ return json;
31
+ }
32
+ return {
33
+ 'page': json['page'],
34
+ 'polygon': PolygonFromJSON(json['polygon']),
35
+ };
36
+ }
37
+ export function PolygonReferenceToJSON(json) {
38
+ return PolygonReferenceToJSONTyped(json, false);
39
+ }
40
+ export function PolygonReferenceToJSONTyped(value, ignoreDiscriminator = false) {
41
+ if (value == null) {
42
+ return value;
43
+ }
44
+ return {
45
+ 'page': value['page'],
46
+ 'polygon': PolygonToJSON(value['polygon']),
47
+ };
48
+ }
49
+ export const PolygonReferencePropertyValidationAttributesMap = {};
@@ -0,0 +1,101 @@
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
+ * Section response model.
14
+ * @export
15
+ * @interface SectionResponse
16
+ */
17
+ export interface SectionResponse {
18
+ /**
19
+ * Section ID
20
+ * @type {string}
21
+ * @memberof SectionResponse
22
+ */
23
+ id: string;
24
+ /**
25
+ * PathPart ID
26
+ * @type {string}
27
+ * @memberof SectionResponse
28
+ */
29
+ pathPartId: string;
30
+ /**
31
+ * Section name
32
+ * @type {string}
33
+ * @memberof SectionResponse
34
+ */
35
+ name: string;
36
+ /**
37
+ * Page number in source document
38
+ * @type {number}
39
+ * @memberof SectionResponse
40
+ */
41
+ pageNumber?: number;
42
+ /**
43
+ * Parent PathPart ID
44
+ * @type {string}
45
+ * @memberof SectionResponse
46
+ */
47
+ parentId: string;
48
+ /**
49
+ * Previous sibling PathPart ID
50
+ * @type {string}
51
+ * @memberof SectionResponse
52
+ */
53
+ prevSiblingPathId?: string;
54
+ /**
55
+ * Next sibling PathPart ID
56
+ * @type {string}
57
+ * @memberof SectionResponse
58
+ */
59
+ nextSiblingId?: string;
60
+ /**
61
+ * Tenant ID
62
+ * @type {string}
63
+ * @memberof SectionResponse
64
+ */
65
+ tenantId: string;
66
+ /**
67
+ * Creation timestamp
68
+ * @type {Date}
69
+ * @memberof SectionResponse
70
+ */
71
+ createdAt: Date;
72
+ /**
73
+ * Last update timestamp
74
+ * @type {Date}
75
+ * @memberof SectionResponse
76
+ */
77
+ updatedAt: Date;
78
+ }
79
+ /**
80
+ * Check if a given object implements the SectionResponse interface.
81
+ */
82
+ export declare function instanceOfSectionResponse(value: object): value is SectionResponse;
83
+ export declare function SectionResponseFromJSON(json: any): SectionResponse;
84
+ export declare function SectionResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SectionResponse;
85
+ export declare function SectionResponseToJSON(json: any): SectionResponse;
86
+ export declare function SectionResponseToJSONTyped(value?: SectionResponse | null, ignoreDiscriminator?: boolean): any;
87
+ export declare const SectionResponsePropertyValidationAttributesMap: {
88
+ [property: string]: {
89
+ maxLength?: number;
90
+ minLength?: number;
91
+ pattern?: string;
92
+ maximum?: number;
93
+ exclusiveMaximum?: boolean;
94
+ minimum?: number;
95
+ exclusiveMinimum?: boolean;
96
+ multipleOf?: number;
97
+ maxItems?: number;
98
+ minItems?: number;
99
+ uniqueItems?: boolean;
100
+ };
101
+ };
@@ -0,0 +1,74 @@
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
+ * Check if a given object implements the SectionResponse interface.
16
+ */
17
+ export function instanceOfSectionResponse(value) {
18
+ if (!('id' in value) || value['id'] === undefined)
19
+ return false;
20
+ if (!('pathPartId' in value) || value['pathPartId'] === undefined)
21
+ return false;
22
+ if (!('name' in value) || value['name'] === undefined)
23
+ return false;
24
+ if (!('parentId' in value) || value['parentId'] === undefined)
25
+ return false;
26
+ if (!('tenantId' in value) || value['tenantId'] === undefined)
27
+ return false;
28
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
29
+ return false;
30
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined)
31
+ return false;
32
+ return true;
33
+ }
34
+ export function SectionResponseFromJSON(json) {
35
+ return SectionResponseFromJSONTyped(json, false);
36
+ }
37
+ export function SectionResponseFromJSONTyped(json, ignoreDiscriminator) {
38
+ if (json == null) {
39
+ return json;
40
+ }
41
+ return {
42
+ 'id': json['id'],
43
+ 'pathPartId': json['path_part_id'],
44
+ 'name': json['name'],
45
+ 'pageNumber': json['page_number'] == null ? undefined : json['page_number'],
46
+ 'parentId': json['parent_id'],
47
+ 'prevSiblingPathId': json['prev_sibling_path_id'] == null ? undefined : json['prev_sibling_path_id'],
48
+ 'nextSiblingId': json['next_sibling_id'] == null ? undefined : json['next_sibling_id'],
49
+ 'tenantId': json['tenant_id'],
50
+ 'createdAt': (new Date(json['created_at'])),
51
+ 'updatedAt': (new Date(json['updated_at'])),
52
+ };
53
+ }
54
+ export function SectionResponseToJSON(json) {
55
+ return SectionResponseToJSONTyped(json, false);
56
+ }
57
+ export function SectionResponseToJSONTyped(value, ignoreDiscriminator = false) {
58
+ if (value == null) {
59
+ return value;
60
+ }
61
+ return {
62
+ 'id': value['id'],
63
+ 'path_part_id': value['pathPartId'],
64
+ 'name': value['name'],
65
+ 'page_number': value['pageNumber'],
66
+ 'parent_id': value['parentId'],
67
+ 'prev_sibling_path_id': value['prevSiblingPathId'],
68
+ 'next_sibling_id': value['nextSiblingId'],
69
+ 'tenant_id': value['tenantId'],
70
+ 'created_at': value['createdAt'].toISOString(),
71
+ 'updated_at': value['updatedAt'].toISOString(),
72
+ };
73
+ }
74
+ export const SectionResponsePropertyValidationAttributesMap = {};
@@ -0,0 +1,54 @@
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 { ChunkType } from './ChunkType';
13
+ /**
14
+ * Request to update chunk content (creates new content row).
15
+ * @export
16
+ * @interface UpdateChunkContentRequest
17
+ */
18
+ export interface UpdateChunkContentRequest {
19
+ /**
20
+ * New chunk text content
21
+ * @type {string}
22
+ * @memberof UpdateChunkContentRequest
23
+ */
24
+ content: string;
25
+ /**
26
+ * New chunk type (null = keep existing type)
27
+ * @type {ChunkType}
28
+ * @memberof UpdateChunkContentRequest
29
+ */
30
+ chunkType?: ChunkType;
31
+ }
32
+ /**
33
+ * Check if a given object implements the UpdateChunkContentRequest interface.
34
+ */
35
+ export declare function instanceOfUpdateChunkContentRequest(value: object): value is UpdateChunkContentRequest;
36
+ export declare function UpdateChunkContentRequestFromJSON(json: any): UpdateChunkContentRequest;
37
+ export declare function UpdateChunkContentRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateChunkContentRequest;
38
+ export declare function UpdateChunkContentRequestToJSON(json: any): UpdateChunkContentRequest;
39
+ export declare function UpdateChunkContentRequestToJSONTyped(value?: UpdateChunkContentRequest | null, ignoreDiscriminator?: boolean): any;
40
+ export declare const UpdateChunkContentRequestPropertyValidationAttributesMap: {
41
+ [property: string]: {
42
+ maxLength?: number;
43
+ minLength?: number;
44
+ pattern?: string;
45
+ maximum?: number;
46
+ exclusiveMaximum?: boolean;
47
+ minimum?: number;
48
+ exclusiveMinimum?: boolean;
49
+ multipleOf?: number;
50
+ maxItems?: number;
51
+ minItems?: number;
52
+ uniqueItems?: boolean;
53
+ };
54
+ };
@@ -0,0 +1,51 @@
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
+ import { ChunkTypeFromJSON, ChunkTypeToJSON, } from './ChunkType';
15
+ /**
16
+ * Check if a given object implements the UpdateChunkContentRequest interface.
17
+ */
18
+ export function instanceOfUpdateChunkContentRequest(value) {
19
+ if (!('content' in value) || value['content'] === undefined)
20
+ return false;
21
+ return true;
22
+ }
23
+ export function UpdateChunkContentRequestFromJSON(json) {
24
+ return UpdateChunkContentRequestFromJSONTyped(json, false);
25
+ }
26
+ export function UpdateChunkContentRequestFromJSONTyped(json, ignoreDiscriminator) {
27
+ if (json == null) {
28
+ return json;
29
+ }
30
+ return {
31
+ 'content': json['content'],
32
+ 'chunkType': json['chunk_type'] == null ? undefined : ChunkTypeFromJSON(json['chunk_type']),
33
+ };
34
+ }
35
+ export function UpdateChunkContentRequestToJSON(json) {
36
+ return UpdateChunkContentRequestToJSONTyped(json, false);
37
+ }
38
+ export function UpdateChunkContentRequestToJSONTyped(value, ignoreDiscriminator = false) {
39
+ if (value == null) {
40
+ return value;
41
+ }
42
+ return {
43
+ 'content': value['content'],
44
+ 'chunk_type': ChunkTypeToJSON(value['chunkType']),
45
+ };
46
+ }
47
+ export const UpdateChunkContentRequestPropertyValidationAttributesMap = {
48
+ content: {
49
+ minLength: 1,
50
+ },
51
+ };
@@ -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 { ChunkMetadataInput } from './ChunkMetadataInput';
13
+ /**
14
+ * Request to update chunk metadata (merge).
15
+ * @export
16
+ * @interface UpdateChunkMetadataRequest
17
+ */
18
+ export interface UpdateChunkMetadataRequest {
19
+ /**
20
+ * Metadata to merge into existing chunk_metadata
21
+ * @type {ChunkMetadataInput}
22
+ * @memberof UpdateChunkMetadataRequest
23
+ */
24
+ chunkMetadata: ChunkMetadataInput;
25
+ }
26
+ /**
27
+ * Check if a given object implements the UpdateChunkMetadataRequest interface.
28
+ */
29
+ export declare function instanceOfUpdateChunkMetadataRequest(value: object): value is UpdateChunkMetadataRequest;
30
+ export declare function UpdateChunkMetadataRequestFromJSON(json: any): UpdateChunkMetadataRequest;
31
+ export declare function UpdateChunkMetadataRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateChunkMetadataRequest;
32
+ export declare function UpdateChunkMetadataRequestToJSON(json: any): UpdateChunkMetadataRequest;
33
+ export declare function UpdateChunkMetadataRequestToJSONTyped(value?: UpdateChunkMetadataRequest | null, ignoreDiscriminator?: boolean): any;
34
+ export declare const UpdateChunkMetadataRequestPropertyValidationAttributesMap: {
35
+ [property: string]: {
36
+ maxLength?: number;
37
+ minLength?: number;
38
+ pattern?: string;
39
+ maximum?: number;
40
+ exclusiveMaximum?: boolean;
41
+ minimum?: number;
42
+ exclusiveMinimum?: boolean;
43
+ multipleOf?: number;
44
+ maxItems?: number;
45
+ minItems?: number;
46
+ uniqueItems?: boolean;
47
+ };
48
+ };