@knowledge-stack/ksapi 1.7.0 → 1.9.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 (103) 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/DocumentVersionsApi.d.ts +36 -1
  6. package/dist/apis/DocumentVersionsApi.js +41 -0
  7. package/dist/apis/FoldersApi.d.ts +38 -1
  8. package/dist/apis/FoldersApi.js +44 -0
  9. package/dist/apis/PathPartsApi.d.ts +4 -6
  10. package/dist/apis/PathPartsApi.js +2 -5
  11. package/dist/apis/index.d.ts +1 -0
  12. package/dist/apis/index.js +1 -0
  13. package/dist/esm/apis/ChunksApi.d.ts +175 -0
  14. package/dist/esm/apis/ChunksApi.js +199 -0
  15. package/dist/esm/apis/DocumentVersionsApi.d.ts +36 -1
  16. package/dist/esm/apis/DocumentVersionsApi.js +42 -1
  17. package/dist/esm/apis/FoldersApi.d.ts +38 -1
  18. package/dist/esm/apis/FoldersApi.js +45 -1
  19. package/dist/esm/apis/PathPartsApi.d.ts +4 -6
  20. package/dist/esm/apis/PathPartsApi.js +2 -5
  21. package/dist/esm/apis/index.d.ts +1 -0
  22. package/dist/esm/apis/index.js +1 -0
  23. package/dist/esm/models/ChunkMetadataInput.d.ts +48 -0
  24. package/dist/esm/models/ChunkMetadataInput.js +43 -0
  25. package/dist/esm/models/ChunkMetadataOutput.d.ts +48 -0
  26. package/dist/esm/models/ChunkMetadataOutput.js +43 -0
  27. package/dist/esm/models/ChunkResponse.d.ts +115 -0
  28. package/dist/esm/models/ChunkResponse.js +86 -0
  29. package/dist/esm/models/ChunkType.d.ts +27 -0
  30. package/dist/esm/models/ChunkType.js +45 -0
  31. package/dist/esm/models/CreateChunkRequest.d.ts +73 -0
  32. package/dist/esm/models/CreateChunkRequest.js +64 -0
  33. package/dist/esm/models/DocumentContentPathPart.d.ts +119 -0
  34. package/dist/esm/models/DocumentContentPathPart.js +83 -0
  35. package/dist/esm/models/FolderDocumentResponse.d.ts +138 -0
  36. package/dist/esm/models/FolderDocumentResponse.js +88 -0
  37. package/dist/esm/models/PaginatedResponseDocumentContentPathPart.d.ts +66 -0
  38. package/dist/esm/models/PaginatedResponseDocumentContentPathPart.js +70 -0
  39. package/dist/esm/models/PaginatedResponseFolderDocumentResponse.d.ts +66 -0
  40. package/dist/esm/models/PaginatedResponseFolderDocumentResponse.js +70 -0
  41. package/dist/esm/models/PasswordResetWithTokenRequest.d.ts +2 -8
  42. package/dist/esm/models/PasswordResetWithTokenRequest.js +3 -7
  43. package/dist/esm/models/Polygon.d.ts +65 -0
  44. package/dist/esm/models/Polygon.js +56 -0
  45. package/dist/esm/models/PolygonReference.d.ts +54 -0
  46. package/dist/esm/models/PolygonReference.js +49 -0
  47. package/dist/esm/models/UpdateChunkContentRequest.d.ts +54 -0
  48. package/dist/esm/models/UpdateChunkContentRequest.js +51 -0
  49. package/dist/esm/models/UpdateChunkMetadataRequest.d.ts +48 -0
  50. package/dist/esm/models/UpdateChunkMetadataRequest.js +45 -0
  51. package/dist/esm/models/index.d.ts +13 -0
  52. package/dist/esm/models/index.js +13 -0
  53. package/dist/models/ChunkMetadataInput.d.ts +48 -0
  54. package/dist/models/ChunkMetadataInput.js +51 -0
  55. package/dist/models/ChunkMetadataOutput.d.ts +48 -0
  56. package/dist/models/ChunkMetadataOutput.js +51 -0
  57. package/dist/models/ChunkResponse.d.ts +115 -0
  58. package/dist/models/ChunkResponse.js +94 -0
  59. package/dist/models/ChunkType.d.ts +27 -0
  60. package/dist/models/ChunkType.js +53 -0
  61. package/dist/models/CreateChunkRequest.d.ts +73 -0
  62. package/dist/models/CreateChunkRequest.js +72 -0
  63. package/dist/models/DocumentContentPathPart.d.ts +119 -0
  64. package/dist/models/DocumentContentPathPart.js +91 -0
  65. package/dist/models/FolderDocumentResponse.d.ts +138 -0
  66. package/dist/models/FolderDocumentResponse.js +96 -0
  67. package/dist/models/PaginatedResponseDocumentContentPathPart.d.ts +66 -0
  68. package/dist/models/PaginatedResponseDocumentContentPathPart.js +78 -0
  69. package/dist/models/PaginatedResponseFolderDocumentResponse.d.ts +66 -0
  70. package/dist/models/PaginatedResponseFolderDocumentResponse.js +78 -0
  71. package/dist/models/PasswordResetWithTokenRequest.d.ts +2 -8
  72. package/dist/models/PasswordResetWithTokenRequest.js +3 -7
  73. package/dist/models/Polygon.d.ts +65 -0
  74. package/dist/models/Polygon.js +64 -0
  75. package/dist/models/PolygonReference.d.ts +54 -0
  76. package/dist/models/PolygonReference.js +57 -0
  77. package/dist/models/UpdateChunkContentRequest.d.ts +54 -0
  78. package/dist/models/UpdateChunkContentRequest.js +59 -0
  79. package/dist/models/UpdateChunkMetadataRequest.d.ts +48 -0
  80. package/dist/models/UpdateChunkMetadataRequest.js +53 -0
  81. package/dist/models/index.d.ts +13 -0
  82. package/dist/models/index.js +13 -0
  83. package/package.json +1 -1
  84. package/src/apis/ChunksApi.ts +381 -0
  85. package/src/apis/DocumentVersionsApi.ts +82 -0
  86. package/src/apis/FoldersApi.ts +88 -0
  87. package/src/apis/PathPartsApi.ts +4 -10
  88. package/src/apis/index.ts +1 -0
  89. package/src/models/ChunkMetadataInput.ts +90 -0
  90. package/src/models/ChunkMetadataOutput.ts +90 -0
  91. package/src/models/ChunkResponse.ts +197 -0
  92. package/src/models/ChunkType.ts +55 -0
  93. package/src/models/CreateChunkRequest.ts +138 -0
  94. package/src/models/DocumentContentPathPart.ts +205 -0
  95. package/src/models/FolderDocumentResponse.ts +234 -0
  96. package/src/models/PaginatedResponseDocumentContentPathPart.ts +130 -0
  97. package/src/models/PaginatedResponseFolderDocumentResponse.ts +130 -0
  98. package/src/models/PasswordResetWithTokenRequest.ts +5 -14
  99. package/src/models/Polygon.ts +110 -0
  100. package/src/models/PolygonReference.ts +100 -0
  101. package/src/models/UpdateChunkContentRequest.ts +104 -0
  102. package/src/models/UpdateChunkMetadataRequest.ts +91 -0
  103. package/src/models/index.ts +13 -0
@@ -0,0 +1,78 @@
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.PaginatedResponseDocumentContentPathPartPropertyValidationAttributesMap = void 0;
17
+ exports.instanceOfPaginatedResponseDocumentContentPathPart = instanceOfPaginatedResponseDocumentContentPathPart;
18
+ exports.PaginatedResponseDocumentContentPathPartFromJSON = PaginatedResponseDocumentContentPathPartFromJSON;
19
+ exports.PaginatedResponseDocumentContentPathPartFromJSONTyped = PaginatedResponseDocumentContentPathPartFromJSONTyped;
20
+ exports.PaginatedResponseDocumentContentPathPartToJSON = PaginatedResponseDocumentContentPathPartToJSON;
21
+ exports.PaginatedResponseDocumentContentPathPartToJSONTyped = PaginatedResponseDocumentContentPathPartToJSONTyped;
22
+ const DocumentContentPathPart_1 = require("./DocumentContentPathPart");
23
+ /**
24
+ * Check if a given object implements the PaginatedResponseDocumentContentPathPart interface.
25
+ */
26
+ function instanceOfPaginatedResponseDocumentContentPathPart(value) {
27
+ if (!('items' in value) || value['items'] === undefined)
28
+ return false;
29
+ if (!('total' in value) || value['total'] === undefined)
30
+ return false;
31
+ if (!('limit' in value) || value['limit'] === undefined)
32
+ return false;
33
+ if (!('offset' in value) || value['offset'] === undefined)
34
+ return false;
35
+ return true;
36
+ }
37
+ function PaginatedResponseDocumentContentPathPartFromJSON(json) {
38
+ return PaginatedResponseDocumentContentPathPartFromJSONTyped(json, false);
39
+ }
40
+ function PaginatedResponseDocumentContentPathPartFromJSONTyped(json, ignoreDiscriminator) {
41
+ if (json == null) {
42
+ return json;
43
+ }
44
+ return {
45
+ 'items': (json['items'].map(DocumentContentPathPart_1.DocumentContentPathPartFromJSON)),
46
+ 'total': json['total'],
47
+ 'limit': json['limit'],
48
+ 'offset': json['offset'],
49
+ };
50
+ }
51
+ function PaginatedResponseDocumentContentPathPartToJSON(json) {
52
+ return PaginatedResponseDocumentContentPathPartToJSONTyped(json, false);
53
+ }
54
+ function PaginatedResponseDocumentContentPathPartToJSONTyped(value, ignoreDiscriminator = false) {
55
+ if (value == null) {
56
+ return value;
57
+ }
58
+ return {
59
+ 'items': (value['items'].map(DocumentContentPathPart_1.DocumentContentPathPartToJSON)),
60
+ 'total': value['total'],
61
+ 'limit': value['limit'],
62
+ 'offset': value['offset'],
63
+ };
64
+ }
65
+ exports.PaginatedResponseDocumentContentPathPartPropertyValidationAttributesMap = {
66
+ total: {
67
+ minimum: 0,
68
+ exclusiveMinimum: false,
69
+ },
70
+ limit: {
71
+ minimum: 1,
72
+ exclusiveMinimum: false,
73
+ },
74
+ offset: {
75
+ minimum: 0,
76
+ exclusiveMinimum: false,
77
+ },
78
+ };
@@ -0,0 +1,66 @@
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 { FolderDocumentResponse } from './FolderDocumentResponse';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface PaginatedResponseFolderDocumentResponse
17
+ */
18
+ export interface PaginatedResponseFolderDocumentResponse {
19
+ /**
20
+ * List of items
21
+ * @type {Array<FolderDocumentResponse>}
22
+ * @memberof PaginatedResponseFolderDocumentResponse
23
+ */
24
+ items: Array<FolderDocumentResponse>;
25
+ /**
26
+ * Total number of items
27
+ * @type {number}
28
+ * @memberof PaginatedResponseFolderDocumentResponse
29
+ */
30
+ total: number;
31
+ /**
32
+ * Number of items per page
33
+ * @type {number}
34
+ * @memberof PaginatedResponseFolderDocumentResponse
35
+ */
36
+ limit: number;
37
+ /**
38
+ * Number of items to skip
39
+ * @type {number}
40
+ * @memberof PaginatedResponseFolderDocumentResponse
41
+ */
42
+ offset: number;
43
+ }
44
+ /**
45
+ * Check if a given object implements the PaginatedResponseFolderDocumentResponse interface.
46
+ */
47
+ export declare function instanceOfPaginatedResponseFolderDocumentResponse(value: object): value is PaginatedResponseFolderDocumentResponse;
48
+ export declare function PaginatedResponseFolderDocumentResponseFromJSON(json: any): PaginatedResponseFolderDocumentResponse;
49
+ export declare function PaginatedResponseFolderDocumentResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedResponseFolderDocumentResponse;
50
+ export declare function PaginatedResponseFolderDocumentResponseToJSON(json: any): PaginatedResponseFolderDocumentResponse;
51
+ export declare function PaginatedResponseFolderDocumentResponseToJSONTyped(value?: PaginatedResponseFolderDocumentResponse | null, ignoreDiscriminator?: boolean): any;
52
+ export declare const PaginatedResponseFolderDocumentResponsePropertyValidationAttributesMap: {
53
+ [property: string]: {
54
+ maxLength?: number;
55
+ minLength?: number;
56
+ pattern?: string;
57
+ maximum?: number;
58
+ exclusiveMaximum?: boolean;
59
+ minimum?: number;
60
+ exclusiveMinimum?: boolean;
61
+ multipleOf?: number;
62
+ maxItems?: number;
63
+ minItems?: number;
64
+ uniqueItems?: boolean;
65
+ };
66
+ };
@@ -0,0 +1,78 @@
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.PaginatedResponseFolderDocumentResponsePropertyValidationAttributesMap = void 0;
17
+ exports.instanceOfPaginatedResponseFolderDocumentResponse = instanceOfPaginatedResponseFolderDocumentResponse;
18
+ exports.PaginatedResponseFolderDocumentResponseFromJSON = PaginatedResponseFolderDocumentResponseFromJSON;
19
+ exports.PaginatedResponseFolderDocumentResponseFromJSONTyped = PaginatedResponseFolderDocumentResponseFromJSONTyped;
20
+ exports.PaginatedResponseFolderDocumentResponseToJSON = PaginatedResponseFolderDocumentResponseToJSON;
21
+ exports.PaginatedResponseFolderDocumentResponseToJSONTyped = PaginatedResponseFolderDocumentResponseToJSONTyped;
22
+ const FolderDocumentResponse_1 = require("./FolderDocumentResponse");
23
+ /**
24
+ * Check if a given object implements the PaginatedResponseFolderDocumentResponse interface.
25
+ */
26
+ function instanceOfPaginatedResponseFolderDocumentResponse(value) {
27
+ if (!('items' in value) || value['items'] === undefined)
28
+ return false;
29
+ if (!('total' in value) || value['total'] === undefined)
30
+ return false;
31
+ if (!('limit' in value) || value['limit'] === undefined)
32
+ return false;
33
+ if (!('offset' in value) || value['offset'] === undefined)
34
+ return false;
35
+ return true;
36
+ }
37
+ function PaginatedResponseFolderDocumentResponseFromJSON(json) {
38
+ return PaginatedResponseFolderDocumentResponseFromJSONTyped(json, false);
39
+ }
40
+ function PaginatedResponseFolderDocumentResponseFromJSONTyped(json, ignoreDiscriminator) {
41
+ if (json == null) {
42
+ return json;
43
+ }
44
+ return {
45
+ 'items': (json['items'].map(FolderDocumentResponse_1.FolderDocumentResponseFromJSON)),
46
+ 'total': json['total'],
47
+ 'limit': json['limit'],
48
+ 'offset': json['offset'],
49
+ };
50
+ }
51
+ function PaginatedResponseFolderDocumentResponseToJSON(json) {
52
+ return PaginatedResponseFolderDocumentResponseToJSONTyped(json, false);
53
+ }
54
+ function PaginatedResponseFolderDocumentResponseToJSONTyped(value, ignoreDiscriminator = false) {
55
+ if (value == null) {
56
+ return value;
57
+ }
58
+ return {
59
+ 'items': (value['items'].map(FolderDocumentResponse_1.FolderDocumentResponseToJSON)),
60
+ 'total': value['total'],
61
+ 'limit': value['limit'],
62
+ 'offset': value['offset'],
63
+ };
64
+ }
65
+ exports.PaginatedResponseFolderDocumentResponsePropertyValidationAttributesMap = {
66
+ total: {
67
+ minimum: 0,
68
+ exclusiveMinimum: false,
69
+ },
70
+ limit: {
71
+ minimum: 1,
72
+ exclusiveMinimum: false,
73
+ },
74
+ offset: {
75
+ minimum: 0,
76
+ exclusiveMinimum: false,
77
+ },
78
+ };
@@ -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.
@@ -23,12 +23,10 @@ exports.PasswordResetWithTokenRequestToJSONTyped = PasswordResetWithTokenRequest
23
23
  * Check if a given object implements the PasswordResetWithTokenRequest interface.
24
24
  */
25
25
  function instanceOfPasswordResetWithTokenRequest(value) {
26
- if (!('oldPassword' in value) || value['oldPassword'] === undefined)
26
+ if (!('emailToken' in value) || value['emailToken'] === undefined)
27
27
  return false;
28
28
  if (!('newPassword' in value) || value['newPassword'] === undefined)
29
29
  return false;
30
- if (!('emailToken' in value) || value['emailToken'] === undefined)
31
- return false;
32
30
  return true;
33
31
  }
34
32
  function PasswordResetWithTokenRequestFromJSON(json) {
@@ -39,9 +37,8 @@ function PasswordResetWithTokenRequestFromJSONTyped(json, ignoreDiscriminator) {
39
37
  return json;
40
38
  }
41
39
  return {
42
- 'oldPassword': json['old_password'],
43
- 'newPassword': json['new_password'],
44
40
  'emailToken': json['email_token'],
41
+ 'newPassword': json['new_password'],
45
42
  };
46
43
  }
47
44
  function PasswordResetWithTokenRequestToJSON(json) {
@@ -52,9 +49,8 @@ function PasswordResetWithTokenRequestToJSONTyped(value, ignoreDiscriminator = f
52
49
  return value;
53
50
  }
54
51
  return {
55
- 'old_password': value['oldPassword'],
56
- 'new_password': value['newPassword'],
57
52
  'email_token': value['emailToken'],
53
+ 'new_password': value['newPassword'],
58
54
  };
59
55
  }
60
56
  exports.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,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.PolygonPropertyValidationAttributesMap = void 0;
17
+ exports.instanceOfPolygon = instanceOfPolygon;
18
+ exports.PolygonFromJSON = PolygonFromJSON;
19
+ exports.PolygonFromJSONTyped = PolygonFromJSONTyped;
20
+ exports.PolygonToJSON = PolygonToJSON;
21
+ exports.PolygonToJSONTyped = PolygonToJSONTyped;
22
+ /**
23
+ * Check if a given object implements the Polygon interface.
24
+ */
25
+ function instanceOfPolygon(value) {
26
+ if (!('x' in value) || value['x'] === undefined)
27
+ return false;
28
+ if (!('y' in value) || value['y'] === undefined)
29
+ return false;
30
+ if (!('width' in value) || value['width'] === undefined)
31
+ return false;
32
+ if (!('height' in value) || value['height'] === undefined)
33
+ return false;
34
+ return true;
35
+ }
36
+ function PolygonFromJSON(json) {
37
+ return PolygonFromJSONTyped(json, false);
38
+ }
39
+ function PolygonFromJSONTyped(json, ignoreDiscriminator) {
40
+ if (json == null) {
41
+ return json;
42
+ }
43
+ return {
44
+ 'x': json['x'],
45
+ 'y': json['y'],
46
+ 'width': json['width'],
47
+ 'height': json['height'],
48
+ };
49
+ }
50
+ function PolygonToJSON(json) {
51
+ return PolygonToJSONTyped(json, false);
52
+ }
53
+ function PolygonToJSONTyped(value, ignoreDiscriminator = false) {
54
+ if (value == null) {
55
+ return value;
56
+ }
57
+ return {
58
+ 'x': value['x'],
59
+ 'y': value['y'],
60
+ 'width': value['width'],
61
+ 'height': value['height'],
62
+ };
63
+ }
64
+ exports.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,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.PolygonReferencePropertyValidationAttributesMap = void 0;
17
+ exports.instanceOfPolygonReference = instanceOfPolygonReference;
18
+ exports.PolygonReferenceFromJSON = PolygonReferenceFromJSON;
19
+ exports.PolygonReferenceFromJSONTyped = PolygonReferenceFromJSONTyped;
20
+ exports.PolygonReferenceToJSON = PolygonReferenceToJSON;
21
+ exports.PolygonReferenceToJSONTyped = PolygonReferenceToJSONTyped;
22
+ const Polygon_1 = require("./Polygon");
23
+ /**
24
+ * Check if a given object implements the PolygonReference interface.
25
+ */
26
+ function instanceOfPolygonReference(value) {
27
+ if (!('page' in value) || value['page'] === undefined)
28
+ return false;
29
+ if (!('polygon' in value) || value['polygon'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ function PolygonReferenceFromJSON(json) {
34
+ return PolygonReferenceFromJSONTyped(json, false);
35
+ }
36
+ function PolygonReferenceFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'page': json['page'],
42
+ 'polygon': (0, Polygon_1.PolygonFromJSON)(json['polygon']),
43
+ };
44
+ }
45
+ function PolygonReferenceToJSON(json) {
46
+ return PolygonReferenceToJSONTyped(json, false);
47
+ }
48
+ function PolygonReferenceToJSONTyped(value, ignoreDiscriminator = false) {
49
+ if (value == null) {
50
+ return value;
51
+ }
52
+ return {
53
+ 'page': value['page'],
54
+ 'polygon': (0, Polygon_1.PolygonToJSON)(value['polygon']),
55
+ };
56
+ }
57
+ exports.PolygonReferencePropertyValidationAttributesMap = {};
@@ -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,59 @@
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.UpdateChunkContentRequestPropertyValidationAttributesMap = void 0;
17
+ exports.instanceOfUpdateChunkContentRequest = instanceOfUpdateChunkContentRequest;
18
+ exports.UpdateChunkContentRequestFromJSON = UpdateChunkContentRequestFromJSON;
19
+ exports.UpdateChunkContentRequestFromJSONTyped = UpdateChunkContentRequestFromJSONTyped;
20
+ exports.UpdateChunkContentRequestToJSON = UpdateChunkContentRequestToJSON;
21
+ exports.UpdateChunkContentRequestToJSONTyped = UpdateChunkContentRequestToJSONTyped;
22
+ const ChunkType_1 = require("./ChunkType");
23
+ /**
24
+ * Check if a given object implements the UpdateChunkContentRequest interface.
25
+ */
26
+ function instanceOfUpdateChunkContentRequest(value) {
27
+ if (!('content' in value) || value['content'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function UpdateChunkContentRequestFromJSON(json) {
32
+ return UpdateChunkContentRequestFromJSONTyped(json, false);
33
+ }
34
+ function UpdateChunkContentRequestFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'content': json['content'],
40
+ 'chunkType': json['chunk_type'] == null ? undefined : (0, ChunkType_1.ChunkTypeFromJSON)(json['chunk_type']),
41
+ };
42
+ }
43
+ function UpdateChunkContentRequestToJSON(json) {
44
+ return UpdateChunkContentRequestToJSONTyped(json, false);
45
+ }
46
+ function UpdateChunkContentRequestToJSONTyped(value, ignoreDiscriminator = false) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'content': value['content'],
52
+ 'chunk_type': (0, ChunkType_1.ChunkTypeToJSON)(value['chunkType']),
53
+ };
54
+ }
55
+ exports.UpdateChunkContentRequestPropertyValidationAttributesMap = {
56
+ content: {
57
+ minLength: 1,
58
+ },
59
+ };