@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,45 @@
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 { ChunkMetadataInputFromJSON, ChunkMetadataInputToJSON, } from './ChunkMetadataInput';
15
+ /**
16
+ * Check if a given object implements the UpdateChunkMetadataRequest interface.
17
+ */
18
+ export function instanceOfUpdateChunkMetadataRequest(value) {
19
+ if (!('chunkMetadata' in value) || value['chunkMetadata'] === undefined)
20
+ return false;
21
+ return true;
22
+ }
23
+ export function UpdateChunkMetadataRequestFromJSON(json) {
24
+ return UpdateChunkMetadataRequestFromJSONTyped(json, false);
25
+ }
26
+ export function UpdateChunkMetadataRequestFromJSONTyped(json, ignoreDiscriminator) {
27
+ if (json == null) {
28
+ return json;
29
+ }
30
+ return {
31
+ 'chunkMetadata': ChunkMetadataInputFromJSON(json['chunk_metadata']),
32
+ };
33
+ }
34
+ export function UpdateChunkMetadataRequestToJSON(json) {
35
+ return UpdateChunkMetadataRequestToJSONTyped(json, false);
36
+ }
37
+ export function UpdateChunkMetadataRequestToJSONTyped(value, ignoreDiscriminator = false) {
38
+ if (value == null) {
39
+ return value;
40
+ }
41
+ return {
42
+ 'chunk_metadata': ChunkMetadataInputToJSON(value['chunkMetadata']),
43
+ };
44
+ }
45
+ export const UpdateChunkMetadataRequestPropertyValidationAttributesMap = {};
@@ -1,14 +1,21 @@
1
+ export * from './ChunkMetadataInput';
2
+ export * from './ChunkMetadataOutput';
3
+ export * from './ChunkResponse';
4
+ export * from './ChunkType';
5
+ export * from './CreateChunkRequest';
1
6
  export * from './CreateDocumentRequest';
2
7
  export * from './CreateFolderRequest';
3
8
  export * from './CreatePasswordUserRequest';
4
9
  export * from './CreateSectionRequest';
5
10
  export * from './CreateTenantRequest';
11
+ export * from './DocumentContentPathPart';
6
12
  export * from './DocumentOrigin';
7
13
  export * from './DocumentResponse';
8
14
  export * from './DocumentType';
9
15
  export * from './DocumentVersionResponse';
10
16
  export * from './EmailSentResponse';
11
17
  export * from './EmailVerificationRequest';
18
+ export * from './FolderDocumentResponse';
12
19
  export * from './FolderResponse';
13
20
  export * from './HTTPValidationError';
14
21
  export * from './HealthCheckResponse';
@@ -17,8 +24,10 @@ export * from './InviteResponse';
17
24
  export * from './InviteStatus';
18
25
  export * from './InviteUserRequest';
19
26
  export * from './OAuth2Config';
27
+ export * from './PaginatedResponseDocumentContentPathPart';
20
28
  export * from './PaginatedResponseDocumentResponse';
21
29
  export * from './PaginatedResponseDocumentVersionResponse';
30
+ export * from './PaginatedResponseFolderDocumentResponse';
22
31
  export * from './PaginatedResponseFolderResponse';
23
32
  export * from './PaginatedResponseInviteResponse';
24
33
  export * from './PaginatedResponsePathPartResponse';
@@ -29,12 +38,16 @@ export * from './PasswordResetRequest';
29
38
  export * from './PasswordResetWithTokenRequest';
30
39
  export * from './PathOrder';
31
40
  export * from './PathPartResponse';
41
+ export * from './Polygon';
42
+ export * from './PolygonReference';
32
43
  export * from './RootResponse';
33
44
  export * from './SectionResponse';
34
45
  export * from './SignInRequest';
35
46
  export * from './TenantResponse';
36
47
  export * from './TenantUserInTenantResponse';
37
48
  export * from './TenantUserRole';
49
+ export * from './UpdateChunkContentRequest';
50
+ export * from './UpdateChunkMetadataRequest';
38
51
  export * from './UpdateDocumentRequest';
39
52
  export * from './UpdateFolderRequest';
40
53
  export * from './UpdateSectionRequest';
@@ -1,16 +1,23 @@
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';
6
11
  export * from './CreateSectionRequest';
7
12
  export * from './CreateTenantRequest';
13
+ export * from './DocumentContentPathPart';
8
14
  export * from './DocumentOrigin';
9
15
  export * from './DocumentResponse';
10
16
  export * from './DocumentType';
11
17
  export * from './DocumentVersionResponse';
12
18
  export * from './EmailSentResponse';
13
19
  export * from './EmailVerificationRequest';
20
+ export * from './FolderDocumentResponse';
14
21
  export * from './FolderResponse';
15
22
  export * from './HTTPValidationError';
16
23
  export * from './HealthCheckResponse';
@@ -19,8 +26,10 @@ export * from './InviteResponse';
19
26
  export * from './InviteStatus';
20
27
  export * from './InviteUserRequest';
21
28
  export * from './OAuth2Config';
29
+ export * from './PaginatedResponseDocumentContentPathPart';
22
30
  export * from './PaginatedResponseDocumentResponse';
23
31
  export * from './PaginatedResponseDocumentVersionResponse';
32
+ export * from './PaginatedResponseFolderDocumentResponse';
24
33
  export * from './PaginatedResponseFolderResponse';
25
34
  export * from './PaginatedResponseInviteResponse';
26
35
  export * from './PaginatedResponsePathPartResponse';
@@ -31,12 +40,16 @@ export * from './PasswordResetRequest';
31
40
  export * from './PasswordResetWithTokenRequest';
32
41
  export * from './PathOrder';
33
42
  export * from './PathPartResponse';
43
+ export * from './Polygon';
44
+ export * from './PolygonReference';
34
45
  export * from './RootResponse';
35
46
  export * from './SectionResponse';
36
47
  export * from './SignInRequest';
37
48
  export * from './TenantResponse';
38
49
  export * from './TenantUserInTenantResponse';
39
50
  export * from './TenantUserRole';
51
+ export * from './UpdateChunkContentRequest';
52
+ export * from './UpdateChunkMetadataRequest';
40
53
  export * from './UpdateDocumentRequest';
41
54
  export * from './UpdateFolderRequest';
42
55
  export * from './UpdateSectionRequest';
@@ -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 { PolygonReference } from './PolygonReference';
13
+ /**
14
+ * Metadata for a chunk including source document references.
15
+ * @export
16
+ * @interface ChunkMetadataInput
17
+ */
18
+ export interface ChunkMetadataInput {
19
+ /**
20
+ * List of bounding boxes in the source document for the chunk, potentially from multiple areas of multiple pages.
21
+ * @type {Array<PolygonReference>}
22
+ * @memberof ChunkMetadataInput
23
+ */
24
+ polygons?: Array<PolygonReference>;
25
+ }
26
+ /**
27
+ * Check if a given object implements the ChunkMetadataInput interface.
28
+ */
29
+ export declare function instanceOfChunkMetadataInput(value: object): value is ChunkMetadataInput;
30
+ export declare function ChunkMetadataInputFromJSON(json: any): ChunkMetadataInput;
31
+ export declare function ChunkMetadataInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChunkMetadataInput;
32
+ export declare function ChunkMetadataInputToJSON(json: any): ChunkMetadataInput;
33
+ export declare function ChunkMetadataInputToJSONTyped(value?: ChunkMetadataInput | null, ignoreDiscriminator?: boolean): any;
34
+ export declare const ChunkMetadataInputPropertyValidationAttributesMap: {
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
+ };
@@ -0,0 +1,51 @@
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.ChunkMetadataInputPropertyValidationAttributesMap = void 0;
17
+ exports.instanceOfChunkMetadataInput = instanceOfChunkMetadataInput;
18
+ exports.ChunkMetadataInputFromJSON = ChunkMetadataInputFromJSON;
19
+ exports.ChunkMetadataInputFromJSONTyped = ChunkMetadataInputFromJSONTyped;
20
+ exports.ChunkMetadataInputToJSON = ChunkMetadataInputToJSON;
21
+ exports.ChunkMetadataInputToJSONTyped = ChunkMetadataInputToJSONTyped;
22
+ const PolygonReference_1 = require("./PolygonReference");
23
+ /**
24
+ * Check if a given object implements the ChunkMetadataInput interface.
25
+ */
26
+ function instanceOfChunkMetadataInput(value) {
27
+ return true;
28
+ }
29
+ function ChunkMetadataInputFromJSON(json) {
30
+ return ChunkMetadataInputFromJSONTyped(json, false);
31
+ }
32
+ function ChunkMetadataInputFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'polygons': json['polygons'] == null ? undefined : (json['polygons'].map(PolygonReference_1.PolygonReferenceFromJSON)),
38
+ };
39
+ }
40
+ function ChunkMetadataInputToJSON(json) {
41
+ return ChunkMetadataInputToJSONTyped(json, false);
42
+ }
43
+ function ChunkMetadataInputToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'polygons': value['polygons'] == null ? undefined : (value['polygons'].map(PolygonReference_1.PolygonReferenceToJSON)),
49
+ };
50
+ }
51
+ exports.ChunkMetadataInputPropertyValidationAttributesMap = {};
@@ -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 { PolygonReference } from './PolygonReference';
13
+ /**
14
+ * Metadata for a chunk including source document references.
15
+ * @export
16
+ * @interface ChunkMetadataOutput
17
+ */
18
+ export interface ChunkMetadataOutput {
19
+ /**
20
+ * List of bounding boxes in the source document for the chunk, potentially from multiple areas of multiple pages.
21
+ * @type {Array<PolygonReference>}
22
+ * @memberof ChunkMetadataOutput
23
+ */
24
+ polygons?: Array<PolygonReference>;
25
+ }
26
+ /**
27
+ * Check if a given object implements the ChunkMetadataOutput interface.
28
+ */
29
+ export declare function instanceOfChunkMetadataOutput(value: object): value is ChunkMetadataOutput;
30
+ export declare function ChunkMetadataOutputFromJSON(json: any): ChunkMetadataOutput;
31
+ export declare function ChunkMetadataOutputFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChunkMetadataOutput;
32
+ export declare function ChunkMetadataOutputToJSON(json: any): ChunkMetadataOutput;
33
+ export declare function ChunkMetadataOutputToJSONTyped(value?: ChunkMetadataOutput | null, ignoreDiscriminator?: boolean): any;
34
+ export declare const ChunkMetadataOutputPropertyValidationAttributesMap: {
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
+ };
@@ -0,0 +1,51 @@
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.ChunkMetadataOutputPropertyValidationAttributesMap = void 0;
17
+ exports.instanceOfChunkMetadataOutput = instanceOfChunkMetadataOutput;
18
+ exports.ChunkMetadataOutputFromJSON = ChunkMetadataOutputFromJSON;
19
+ exports.ChunkMetadataOutputFromJSONTyped = ChunkMetadataOutputFromJSONTyped;
20
+ exports.ChunkMetadataOutputToJSON = ChunkMetadataOutputToJSON;
21
+ exports.ChunkMetadataOutputToJSONTyped = ChunkMetadataOutputToJSONTyped;
22
+ const PolygonReference_1 = require("./PolygonReference");
23
+ /**
24
+ * Check if a given object implements the ChunkMetadataOutput interface.
25
+ */
26
+ function instanceOfChunkMetadataOutput(value) {
27
+ return true;
28
+ }
29
+ function ChunkMetadataOutputFromJSON(json) {
30
+ return ChunkMetadataOutputFromJSONTyped(json, false);
31
+ }
32
+ function ChunkMetadataOutputFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'polygons': json['polygons'] == null ? undefined : (json['polygons'].map(PolygonReference_1.PolygonReferenceFromJSON)),
38
+ };
39
+ }
40
+ function ChunkMetadataOutputToJSON(json) {
41
+ return ChunkMetadataOutputToJSONTyped(json, false);
42
+ }
43
+ function ChunkMetadataOutputToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'polygons': value['polygons'] == null ? undefined : (value['polygons'].map(PolygonReference_1.PolygonReferenceToJSON)),
49
+ };
50
+ }
51
+ exports.ChunkMetadataOutputPropertyValidationAttributesMap = {};
@@ -0,0 +1,115 @@
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 { ChunkMetadataOutput } from './ChunkMetadataOutput';
13
+ import type { ChunkType } from './ChunkType';
14
+ /**
15
+ * Chunk response model.
16
+ * @export
17
+ * @interface ChunkResponse
18
+ */
19
+ export interface ChunkResponse {
20
+ /**
21
+ * Chunk ID
22
+ * @type {string}
23
+ * @memberof ChunkResponse
24
+ */
25
+ id: string;
26
+ /**
27
+ * PathPart ID
28
+ * @type {string}
29
+ * @memberof ChunkResponse
30
+ */
31
+ pathPartId: string;
32
+ /**
33
+ * ChunkContent ID
34
+ * @type {string}
35
+ * @memberof ChunkResponse
36
+ */
37
+ contentId: string;
38
+ /**
39
+ * Chunk text content
40
+ * @type {string}
41
+ * @memberof ChunkResponse
42
+ */
43
+ content: string;
44
+ /**
45
+ * Type of chunk content
46
+ * @type {ChunkType}
47
+ * @memberof ChunkResponse
48
+ */
49
+ chunkType: ChunkType;
50
+ /**
51
+ * Chunk metadata
52
+ * @type {ChunkMetadataOutput}
53
+ * @memberof ChunkResponse
54
+ */
55
+ chunkMetadata: ChunkMetadataOutput;
56
+ /**
57
+ * Parent PathPart ID
58
+ * @type {string}
59
+ * @memberof ChunkResponse
60
+ */
61
+ parentId: string;
62
+ /**
63
+ * Previous sibling PathPart ID
64
+ * @type {string}
65
+ * @memberof ChunkResponse
66
+ */
67
+ prevSiblingPathId?: string;
68
+ /**
69
+ * Next sibling PathPart ID
70
+ * @type {string}
71
+ * @memberof ChunkResponse
72
+ */
73
+ nextSiblingId?: string;
74
+ /**
75
+ * Tenant ID
76
+ * @type {string}
77
+ * @memberof ChunkResponse
78
+ */
79
+ tenantId: string;
80
+ /**
81
+ * Creation timestamp
82
+ * @type {Date}
83
+ * @memberof ChunkResponse
84
+ */
85
+ createdAt: Date;
86
+ /**
87
+ * Last update timestamp
88
+ * @type {Date}
89
+ * @memberof ChunkResponse
90
+ */
91
+ updatedAt: Date;
92
+ }
93
+ /**
94
+ * Check if a given object implements the ChunkResponse interface.
95
+ */
96
+ export declare function instanceOfChunkResponse(value: object): value is ChunkResponse;
97
+ export declare function ChunkResponseFromJSON(json: any): ChunkResponse;
98
+ export declare function ChunkResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChunkResponse;
99
+ export declare function ChunkResponseToJSON(json: any): ChunkResponse;
100
+ export declare function ChunkResponseToJSONTyped(value?: ChunkResponse | null, ignoreDiscriminator?: boolean): any;
101
+ export declare const ChunkResponsePropertyValidationAttributesMap: {
102
+ [property: string]: {
103
+ maxLength?: number;
104
+ minLength?: number;
105
+ pattern?: string;
106
+ maximum?: number;
107
+ exclusiveMaximum?: boolean;
108
+ minimum?: number;
109
+ exclusiveMinimum?: boolean;
110
+ multipleOf?: number;
111
+ maxItems?: number;
112
+ minItems?: number;
113
+ uniqueItems?: boolean;
114
+ };
115
+ };
@@ -0,0 +1,94 @@
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.ChunkResponsePropertyValidationAttributesMap = void 0;
17
+ exports.instanceOfChunkResponse = instanceOfChunkResponse;
18
+ exports.ChunkResponseFromJSON = ChunkResponseFromJSON;
19
+ exports.ChunkResponseFromJSONTyped = ChunkResponseFromJSONTyped;
20
+ exports.ChunkResponseToJSON = ChunkResponseToJSON;
21
+ exports.ChunkResponseToJSONTyped = ChunkResponseToJSONTyped;
22
+ const ChunkMetadataOutput_1 = require("./ChunkMetadataOutput");
23
+ const ChunkType_1 = require("./ChunkType");
24
+ /**
25
+ * Check if a given object implements the ChunkResponse interface.
26
+ */
27
+ function instanceOfChunkResponse(value) {
28
+ if (!('id' in value) || value['id'] === undefined)
29
+ return false;
30
+ if (!('pathPartId' in value) || value['pathPartId'] === undefined)
31
+ return false;
32
+ if (!('contentId' in value) || value['contentId'] === undefined)
33
+ return false;
34
+ if (!('content' in value) || value['content'] === undefined)
35
+ return false;
36
+ if (!('chunkType' in value) || value['chunkType'] === undefined)
37
+ return false;
38
+ if (!('chunkMetadata' in value) || value['chunkMetadata'] === undefined)
39
+ return false;
40
+ if (!('parentId' in value) || value['parentId'] === undefined)
41
+ return false;
42
+ if (!('tenantId' in value) || value['tenantId'] === undefined)
43
+ return false;
44
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
45
+ return false;
46
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined)
47
+ return false;
48
+ return true;
49
+ }
50
+ function ChunkResponseFromJSON(json) {
51
+ return ChunkResponseFromJSONTyped(json, false);
52
+ }
53
+ function ChunkResponseFromJSONTyped(json, ignoreDiscriminator) {
54
+ if (json == null) {
55
+ return json;
56
+ }
57
+ return {
58
+ 'id': json['id'],
59
+ 'pathPartId': json['path_part_id'],
60
+ 'contentId': json['content_id'],
61
+ 'content': json['content'],
62
+ 'chunkType': (0, ChunkType_1.ChunkTypeFromJSON)(json['chunk_type']),
63
+ 'chunkMetadata': (0, ChunkMetadataOutput_1.ChunkMetadataOutputFromJSON)(json['chunk_metadata']),
64
+ 'parentId': json['parent_id'],
65
+ 'prevSiblingPathId': json['prev_sibling_path_id'] == null ? undefined : json['prev_sibling_path_id'],
66
+ 'nextSiblingId': json['next_sibling_id'] == null ? undefined : json['next_sibling_id'],
67
+ 'tenantId': json['tenant_id'],
68
+ 'createdAt': (new Date(json['created_at'])),
69
+ 'updatedAt': (new Date(json['updated_at'])),
70
+ };
71
+ }
72
+ function ChunkResponseToJSON(json) {
73
+ return ChunkResponseToJSONTyped(json, false);
74
+ }
75
+ function ChunkResponseToJSONTyped(value, ignoreDiscriminator = false) {
76
+ if (value == null) {
77
+ return value;
78
+ }
79
+ return {
80
+ 'id': value['id'],
81
+ 'path_part_id': value['pathPartId'],
82
+ 'content_id': value['contentId'],
83
+ 'content': value['content'],
84
+ 'chunk_type': (0, ChunkType_1.ChunkTypeToJSON)(value['chunkType']),
85
+ 'chunk_metadata': (0, ChunkMetadataOutput_1.ChunkMetadataOutputToJSON)(value['chunkMetadata']),
86
+ 'parent_id': value['parentId'],
87
+ 'prev_sibling_path_id': value['prevSiblingPathId'],
88
+ 'next_sibling_id': value['nextSiblingId'],
89
+ 'tenant_id': value['tenantId'],
90
+ 'created_at': value['createdAt'].toISOString(),
91
+ 'updated_at': value['updatedAt'].toISOString(),
92
+ };
93
+ }
94
+ exports.ChunkResponsePropertyValidationAttributesMap = {};
@@ -0,0 +1,27 @@
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
+ * Type of chunk content.
14
+ * @export
15
+ */
16
+ export declare const ChunkType: {
17
+ readonly Text: "TEXT";
18
+ readonly Table: "TABLE";
19
+ readonly Image: "IMAGE";
20
+ readonly Unknown: "UNKNOWN";
21
+ };
22
+ export type ChunkType = typeof ChunkType[keyof typeof ChunkType];
23
+ export declare function instanceOfChunkType(value: any): boolean;
24
+ export declare function ChunkTypeFromJSON(json: any): ChunkType;
25
+ export declare function ChunkTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChunkType;
26
+ export declare function ChunkTypeToJSON(value?: ChunkType | null): any;
27
+ export declare function ChunkTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): ChunkType;
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Knowledge Stack API
6
+ * Knowledge Stack backend API for authentication and knowledge management
7
+ *
8
+ * The version of the OpenAPI document: 0.1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.ChunkType = void 0;
17
+ exports.instanceOfChunkType = instanceOfChunkType;
18
+ exports.ChunkTypeFromJSON = ChunkTypeFromJSON;
19
+ exports.ChunkTypeFromJSONTyped = ChunkTypeFromJSONTyped;
20
+ exports.ChunkTypeToJSON = ChunkTypeToJSON;
21
+ exports.ChunkTypeToJSONTyped = ChunkTypeToJSONTyped;
22
+ /**
23
+ * Type of chunk content.
24
+ * @export
25
+ */
26
+ exports.ChunkType = {
27
+ Text: 'TEXT',
28
+ Table: 'TABLE',
29
+ Image: 'IMAGE',
30
+ Unknown: 'UNKNOWN'
31
+ };
32
+ function instanceOfChunkType(value) {
33
+ for (const key in exports.ChunkType) {
34
+ if (Object.prototype.hasOwnProperty.call(exports.ChunkType, key)) {
35
+ if (exports.ChunkType[key] === value) {
36
+ return true;
37
+ }
38
+ }
39
+ }
40
+ return false;
41
+ }
42
+ function ChunkTypeFromJSON(json) {
43
+ return ChunkTypeFromJSONTyped(json, false);
44
+ }
45
+ function ChunkTypeFromJSONTyped(json, ignoreDiscriminator) {
46
+ return json;
47
+ }
48
+ function ChunkTypeToJSON(value) {
49
+ return value;
50
+ }
51
+ function ChunkTypeToJSONTyped(value, ignoreDiscriminator) {
52
+ return value;
53
+ }