@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,144 @@
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 * as runtime from '../runtime';
13
+ import type { CreateSectionRequest, SectionResponse, UpdateSectionRequest } from '../models/index';
14
+ export interface CreateSectionOperationRequest {
15
+ createSectionRequest: CreateSectionRequest;
16
+ ksUat?: string;
17
+ }
18
+ export interface DeleteSectionRequest {
19
+ sectionId: string;
20
+ ksUat?: string;
21
+ }
22
+ export interface GetSectionRequest {
23
+ sectionId: string;
24
+ ksUat?: string;
25
+ }
26
+ export interface UpdateSectionOperationRequest {
27
+ sectionId: string;
28
+ updateSectionRequest: UpdateSectionRequest;
29
+ ksUat?: string;
30
+ }
31
+ /**
32
+ * SectionsApi - interface
33
+ *
34
+ * @export
35
+ * @interface SectionsApiInterface
36
+ */
37
+ export interface SectionsApiInterface {
38
+ /**
39
+ * Create a new section. The section is created as a child of the specified parent (must be DOCUMENT_VERSION or SECTION). If prev_sibling_path_id is provided, the section is inserted after that sibling; otherwise it is appended to the end of the sibling list.
40
+ * @summary Create Section Handler
41
+ * @param {CreateSectionRequest} createSectionRequest
42
+ * @param {string} [ksUat]
43
+ * @param {*} [options] Override http request option.
44
+ * @throws {RequiredError}
45
+ * @memberof SectionsApiInterface
46
+ */
47
+ createSectionRaw(requestParameters: CreateSectionOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SectionResponse>>;
48
+ /**
49
+ * Create a new section. The section is created as a child of the specified parent (must be DOCUMENT_VERSION or SECTION). If prev_sibling_path_id is provided, the section is inserted after that sibling; otherwise it is appended to the end of the sibling list.
50
+ * Create Section Handler
51
+ */
52
+ createSection(requestParameters: CreateSectionOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SectionResponse>;
53
+ /**
54
+ * Delete a section and all its children. WARNING: This cascades to all child sections due to parent_id ON DELETE CASCADE.
55
+ * @summary Delete Section Handler
56
+ * @param {string} sectionId
57
+ * @param {string} [ksUat]
58
+ * @param {*} [options] Override http request option.
59
+ * @throws {RequiredError}
60
+ * @memberof SectionsApiInterface
61
+ */
62
+ deleteSectionRaw(requestParameters: DeleteSectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
63
+ /**
64
+ * Delete a section and all its children. WARNING: This cascades to all child sections due to parent_id ON DELETE CASCADE.
65
+ * Delete Section Handler
66
+ */
67
+ deleteSection(requestParameters: DeleteSectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
68
+ /**
69
+ * Get a section by its ID.
70
+ * @summary Get Section Handler
71
+ * @param {string} sectionId
72
+ * @param {string} [ksUat]
73
+ * @param {*} [options] Override http request option.
74
+ * @throws {RequiredError}
75
+ * @memberof SectionsApiInterface
76
+ */
77
+ getSectionRaw(requestParameters: GetSectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SectionResponse>>;
78
+ /**
79
+ * Get a section by its ID.
80
+ * Get Section Handler
81
+ */
82
+ getSection(requestParameters: GetSectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SectionResponse>;
83
+ /**
84
+ * Update a section. Can update name, page_number, and/or reorder within siblings. To move: provide prev_sibling_path_id OR move_to_head (not both). Moving is only allowed within the same document version. Note: Section names can contain any characters. The corresponding path_part.name will be automatically normalized by a database trigger.
85
+ * @summary Update Section Handler
86
+ * @param {string} sectionId
87
+ * @param {UpdateSectionRequest} updateSectionRequest
88
+ * @param {string} [ksUat]
89
+ * @param {*} [options] Override http request option.
90
+ * @throws {RequiredError}
91
+ * @memberof SectionsApiInterface
92
+ */
93
+ updateSectionRaw(requestParameters: UpdateSectionOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SectionResponse>>;
94
+ /**
95
+ * Update a section. Can update name, page_number, and/or reorder within siblings. To move: provide prev_sibling_path_id OR move_to_head (not both). Moving is only allowed within the same document version. Note: Section names can contain any characters. The corresponding path_part.name will be automatically normalized by a database trigger.
96
+ * Update Section Handler
97
+ */
98
+ updateSection(requestParameters: UpdateSectionOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SectionResponse>;
99
+ }
100
+ /**
101
+ *
102
+ */
103
+ export declare class SectionsApi extends runtime.BaseAPI implements SectionsApiInterface {
104
+ /**
105
+ * Create a new section. The section is created as a child of the specified parent (must be DOCUMENT_VERSION or SECTION). If prev_sibling_path_id is provided, the section is inserted after that sibling; otherwise it is appended to the end of the sibling list.
106
+ * Create Section Handler
107
+ */
108
+ createSectionRaw(requestParameters: CreateSectionOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SectionResponse>>;
109
+ /**
110
+ * Create a new section. The section is created as a child of the specified parent (must be DOCUMENT_VERSION or SECTION). If prev_sibling_path_id is provided, the section is inserted after that sibling; otherwise it is appended to the end of the sibling list.
111
+ * Create Section Handler
112
+ */
113
+ createSection(requestParameters: CreateSectionOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SectionResponse>;
114
+ /**
115
+ * Delete a section and all its children. WARNING: This cascades to all child sections due to parent_id ON DELETE CASCADE.
116
+ * Delete Section Handler
117
+ */
118
+ deleteSectionRaw(requestParameters: DeleteSectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
119
+ /**
120
+ * Delete a section and all its children. WARNING: This cascades to all child sections due to parent_id ON DELETE CASCADE.
121
+ * Delete Section Handler
122
+ */
123
+ deleteSection(requestParameters: DeleteSectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
124
+ /**
125
+ * Get a section by its ID.
126
+ * Get Section Handler
127
+ */
128
+ getSectionRaw(requestParameters: GetSectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SectionResponse>>;
129
+ /**
130
+ * Get a section by its ID.
131
+ * Get Section Handler
132
+ */
133
+ getSection(requestParameters: GetSectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SectionResponse>;
134
+ /**
135
+ * Update a section. Can update name, page_number, and/or reorder within siblings. To move: provide prev_sibling_path_id OR move_to_head (not both). Moving is only allowed within the same document version. Note: Section names can contain any characters. The corresponding path_part.name will be automatically normalized by a database trigger.
136
+ * Update Section Handler
137
+ */
138
+ updateSectionRaw(requestParameters: UpdateSectionOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SectionResponse>>;
139
+ /**
140
+ * Update a section. Can update name, page_number, and/or reorder within siblings. To move: provide prev_sibling_path_id OR move_to_head (not both). Moving is only allowed within the same document version. Note: Section names can contain any characters. The corresponding path_part.name will be automatically normalized by a database trigger.
141
+ * Update Section Handler
142
+ */
143
+ updateSection(requestParameters: UpdateSectionOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SectionResponse>;
144
+ }
@@ -0,0 +1,166 @@
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
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
16
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
17
+ return new (P || (P = Promise))(function (resolve, reject) {
18
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
19
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
20
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
21
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
22
+ });
23
+ };
24
+ Object.defineProperty(exports, "__esModule", { value: true });
25
+ exports.SectionsApi = void 0;
26
+ const runtime = require("../runtime");
27
+ const index_1 = require("../models/index");
28
+ /**
29
+ *
30
+ */
31
+ class SectionsApi extends runtime.BaseAPI {
32
+ /**
33
+ * Create a new section. The section is created as a child of the specified parent (must be DOCUMENT_VERSION or SECTION). If prev_sibling_path_id is provided, the section is inserted after that sibling; otherwise it is appended to the end of the sibling list.
34
+ * Create Section Handler
35
+ */
36
+ createSectionRaw(requestParameters, initOverrides) {
37
+ return __awaiter(this, void 0, void 0, function* () {
38
+ if (requestParameters['createSectionRequest'] == null) {
39
+ throw new runtime.RequiredError('createSectionRequest', 'Required parameter "createSectionRequest" was null or undefined when calling createSection().');
40
+ }
41
+ const queryParameters = {};
42
+ const headerParameters = {};
43
+ headerParameters['Content-Type'] = 'application/json';
44
+ let urlPath = `/v1/sections`;
45
+ const response = yield this.request({
46
+ path: urlPath,
47
+ method: 'POST',
48
+ headers: headerParameters,
49
+ query: queryParameters,
50
+ body: (0, index_1.CreateSectionRequestToJSON)(requestParameters['createSectionRequest']),
51
+ }, initOverrides);
52
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.SectionResponseFromJSON)(jsonValue));
53
+ });
54
+ }
55
+ /**
56
+ * Create a new section. The section is created as a child of the specified parent (must be DOCUMENT_VERSION or SECTION). If prev_sibling_path_id is provided, the section is inserted after that sibling; otherwise it is appended to the end of the sibling list.
57
+ * Create Section Handler
58
+ */
59
+ createSection(requestParameters, initOverrides) {
60
+ return __awaiter(this, void 0, void 0, function* () {
61
+ const response = yield this.createSectionRaw(requestParameters, initOverrides);
62
+ return yield response.value();
63
+ });
64
+ }
65
+ /**
66
+ * Delete a section and all its children. WARNING: This cascades to all child sections due to parent_id ON DELETE CASCADE.
67
+ * Delete Section Handler
68
+ */
69
+ deleteSectionRaw(requestParameters, initOverrides) {
70
+ return __awaiter(this, void 0, void 0, function* () {
71
+ if (requestParameters['sectionId'] == null) {
72
+ throw new runtime.RequiredError('sectionId', 'Required parameter "sectionId" was null or undefined when calling deleteSection().');
73
+ }
74
+ const queryParameters = {};
75
+ const headerParameters = {};
76
+ let urlPath = `/v1/sections/{section_id}`;
77
+ urlPath = urlPath.replace(`{${"section_id"}}`, encodeURIComponent(String(requestParameters['sectionId'])));
78
+ const response = yield this.request({
79
+ path: urlPath,
80
+ method: 'DELETE',
81
+ headers: headerParameters,
82
+ query: queryParameters,
83
+ }, initOverrides);
84
+ return new runtime.VoidApiResponse(response);
85
+ });
86
+ }
87
+ /**
88
+ * Delete a section and all its children. WARNING: This cascades to all child sections due to parent_id ON DELETE CASCADE.
89
+ * Delete Section Handler
90
+ */
91
+ deleteSection(requestParameters, initOverrides) {
92
+ return __awaiter(this, void 0, void 0, function* () {
93
+ yield this.deleteSectionRaw(requestParameters, initOverrides);
94
+ });
95
+ }
96
+ /**
97
+ * Get a section by its ID.
98
+ * Get Section Handler
99
+ */
100
+ getSectionRaw(requestParameters, initOverrides) {
101
+ return __awaiter(this, void 0, void 0, function* () {
102
+ if (requestParameters['sectionId'] == null) {
103
+ throw new runtime.RequiredError('sectionId', 'Required parameter "sectionId" was null or undefined when calling getSection().');
104
+ }
105
+ const queryParameters = {};
106
+ const headerParameters = {};
107
+ let urlPath = `/v1/sections/{section_id}`;
108
+ urlPath = urlPath.replace(`{${"section_id"}}`, encodeURIComponent(String(requestParameters['sectionId'])));
109
+ const response = yield this.request({
110
+ path: urlPath,
111
+ method: 'GET',
112
+ headers: headerParameters,
113
+ query: queryParameters,
114
+ }, initOverrides);
115
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.SectionResponseFromJSON)(jsonValue));
116
+ });
117
+ }
118
+ /**
119
+ * Get a section by its ID.
120
+ * Get Section Handler
121
+ */
122
+ getSection(requestParameters, initOverrides) {
123
+ return __awaiter(this, void 0, void 0, function* () {
124
+ const response = yield this.getSectionRaw(requestParameters, initOverrides);
125
+ return yield response.value();
126
+ });
127
+ }
128
+ /**
129
+ * Update a section. Can update name, page_number, and/or reorder within siblings. To move: provide prev_sibling_path_id OR move_to_head (not both). Moving is only allowed within the same document version. Note: Section names can contain any characters. The corresponding path_part.name will be automatically normalized by a database trigger.
130
+ * Update Section Handler
131
+ */
132
+ updateSectionRaw(requestParameters, initOverrides) {
133
+ return __awaiter(this, void 0, void 0, function* () {
134
+ if (requestParameters['sectionId'] == null) {
135
+ throw new runtime.RequiredError('sectionId', 'Required parameter "sectionId" was null or undefined when calling updateSection().');
136
+ }
137
+ if (requestParameters['updateSectionRequest'] == null) {
138
+ throw new runtime.RequiredError('updateSectionRequest', 'Required parameter "updateSectionRequest" was null or undefined when calling updateSection().');
139
+ }
140
+ const queryParameters = {};
141
+ const headerParameters = {};
142
+ headerParameters['Content-Type'] = 'application/json';
143
+ let urlPath = `/v1/sections/{section_id}`;
144
+ urlPath = urlPath.replace(`{${"section_id"}}`, encodeURIComponent(String(requestParameters['sectionId'])));
145
+ const response = yield this.request({
146
+ path: urlPath,
147
+ method: 'PATCH',
148
+ headers: headerParameters,
149
+ query: queryParameters,
150
+ body: (0, index_1.UpdateSectionRequestToJSON)(requestParameters['updateSectionRequest']),
151
+ }, initOverrides);
152
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.SectionResponseFromJSON)(jsonValue));
153
+ });
154
+ }
155
+ /**
156
+ * Update a section. Can update name, page_number, and/or reorder within siblings. To move: provide prev_sibling_path_id OR move_to_head (not both). Moving is only allowed within the same document version. Note: Section names can contain any characters. The corresponding path_part.name will be automatically normalized by a database trigger.
157
+ * Update Section Handler
158
+ */
159
+ updateSection(requestParameters, initOverrides) {
160
+ return __awaiter(this, void 0, void 0, function* () {
161
+ const response = yield this.updateSectionRaw(requestParameters, initOverrides);
162
+ return yield response.value();
163
+ });
164
+ }
165
+ }
166
+ exports.SectionsApi = SectionsApi;
@@ -1,9 +1,11 @@
1
1
  export * from './AuthApi';
2
+ export * from './ChunksApi';
2
3
  export * from './DefaultApi';
3
4
  export * from './DocumentVersionsApi';
4
5
  export * from './DocumentsApi';
5
6
  export * from './FoldersApi';
6
7
  export * from './InvitesApi';
7
8
  export * from './PathPartsApi';
9
+ export * from './SectionsApi';
8
10
  export * from './TenantsApi';
9
11
  export * from './UsersApi';
@@ -17,11 +17,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  /* tslint:disable */
18
18
  /* eslint-disable */
19
19
  __exportStar(require("./AuthApi"), exports);
20
+ __exportStar(require("./ChunksApi"), exports);
20
21
  __exportStar(require("./DefaultApi"), exports);
21
22
  __exportStar(require("./DocumentVersionsApi"), exports);
22
23
  __exportStar(require("./DocumentsApi"), exports);
23
24
  __exportStar(require("./FoldersApi"), exports);
24
25
  __exportStar(require("./InvitesApi"), exports);
25
26
  __exportStar(require("./PathPartsApi"), exports);
27
+ __exportStar(require("./SectionsApi"), exports);
26
28
  __exportStar(require("./TenantsApi"), exports);
27
29
  __exportStar(require("./UsersApi"), exports);
@@ -0,0 +1,175 @@
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 * as runtime from '../runtime';
13
+ import type { ChunkResponse, CreateChunkRequest, UpdateChunkContentRequest, UpdateChunkMetadataRequest } from '../models/index';
14
+ export interface CreateChunkOperationRequest {
15
+ createChunkRequest: CreateChunkRequest;
16
+ ksUat?: string;
17
+ }
18
+ export interface DeleteChunkRequest {
19
+ chunkId: string;
20
+ ksUat?: string;
21
+ }
22
+ export interface GetChunkRequest {
23
+ chunkId: string;
24
+ ksUat?: string;
25
+ }
26
+ export interface UpdateChunkContentOperationRequest {
27
+ chunkId: string;
28
+ updateChunkContentRequest: UpdateChunkContentRequest;
29
+ ksUat?: string;
30
+ }
31
+ export interface UpdateChunkMetadataOperationRequest {
32
+ chunkId: string;
33
+ updateChunkMetadataRequest: UpdateChunkMetadataRequest;
34
+ ksUat?: string;
35
+ }
36
+ /**
37
+ * ChunksApi - interface
38
+ *
39
+ * @export
40
+ * @interface ChunksApiInterface
41
+ */
42
+ export interface ChunksApiInterface {
43
+ /**
44
+ * Create a new chunk with content. The chunk is created as a child of the specified parent (must be DOCUMENT_VERSION or SECTION). Content is deduplicated by SHA256 hash.
45
+ * @summary Create Chunk Handler
46
+ * @param {CreateChunkRequest} createChunkRequest
47
+ * @param {string} [ksUat]
48
+ * @param {*} [options] Override http request option.
49
+ * @throws {RequiredError}
50
+ * @memberof ChunksApiInterface
51
+ */
52
+ createChunkRaw(requestParameters: CreateChunkOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ChunkResponse>>;
53
+ /**
54
+ * Create a new chunk with content. The chunk is created as a child of the specified parent (must be DOCUMENT_VERSION or SECTION). Content is deduplicated by SHA256 hash.
55
+ * Create Chunk Handler
56
+ */
57
+ createChunk(requestParameters: CreateChunkOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ChunkResponse>;
58
+ /**
59
+ * Delete a chunk. The chunk is deleted via its PathPart (cascading delete). The associated ChunkContent may remain if shared by other chunks.
60
+ * @summary Delete Chunk Handler
61
+ * @param {string} chunkId
62
+ * @param {string} [ksUat]
63
+ * @param {*} [options] Override http request option.
64
+ * @throws {RequiredError}
65
+ * @memberof ChunksApiInterface
66
+ */
67
+ deleteChunkRaw(requestParameters: DeleteChunkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
68
+ /**
69
+ * Delete a chunk. The chunk is deleted via its PathPart (cascading delete). The associated ChunkContent may remain if shared by other chunks.
70
+ * Delete Chunk Handler
71
+ */
72
+ deleteChunk(requestParameters: DeleteChunkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
73
+ /**
74
+ * Get a chunk by its ID, including content.
75
+ * @summary Get Chunk Handler
76
+ * @param {string} chunkId
77
+ * @param {string} [ksUat]
78
+ * @param {*} [options] Override http request option.
79
+ * @throws {RequiredError}
80
+ * @memberof ChunksApiInterface
81
+ */
82
+ getChunkRaw(requestParameters: GetChunkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ChunkResponse>>;
83
+ /**
84
+ * Get a chunk by its ID, including content.
85
+ * Get Chunk Handler
86
+ */
87
+ getChunk(requestParameters: GetChunkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ChunkResponse>;
88
+ /**
89
+ * Update chunk content by creating a new content row. The old content row is preserved (not deleted). If the new content matches an existing content hash, it will be deduplicated.
90
+ * @summary Update Chunk Content Handler
91
+ * @param {string} chunkId
92
+ * @param {UpdateChunkContentRequest} updateChunkContentRequest
93
+ * @param {string} [ksUat]
94
+ * @param {*} [options] Override http request option.
95
+ * @throws {RequiredError}
96
+ * @memberof ChunksApiInterface
97
+ */
98
+ updateChunkContentRaw(requestParameters: UpdateChunkContentOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ChunkResponse>>;
99
+ /**
100
+ * Update chunk content by creating a new content row. The old content row is preserved (not deleted). If the new content matches an existing content hash, it will be deduplicated.
101
+ * Update Chunk Content Handler
102
+ */
103
+ updateChunkContent(requestParameters: UpdateChunkContentOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ChunkResponse>;
104
+ /**
105
+ * Update chunk metadata by merging with existing metadata. The provided metadata is shallow-merged into the existing chunk_metadata.
106
+ * @summary Update Chunk Metadata Handler
107
+ * @param {string} chunkId
108
+ * @param {UpdateChunkMetadataRequest} updateChunkMetadataRequest
109
+ * @param {string} [ksUat]
110
+ * @param {*} [options] Override http request option.
111
+ * @throws {RequiredError}
112
+ * @memberof ChunksApiInterface
113
+ */
114
+ updateChunkMetadataRaw(requestParameters: UpdateChunkMetadataOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ChunkResponse>>;
115
+ /**
116
+ * Update chunk metadata by merging with existing metadata. The provided metadata is shallow-merged into the existing chunk_metadata.
117
+ * Update Chunk Metadata Handler
118
+ */
119
+ updateChunkMetadata(requestParameters: UpdateChunkMetadataOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ChunkResponse>;
120
+ }
121
+ /**
122
+ *
123
+ */
124
+ export declare class ChunksApi extends runtime.BaseAPI implements ChunksApiInterface {
125
+ /**
126
+ * Create a new chunk with content. The chunk is created as a child of the specified parent (must be DOCUMENT_VERSION or SECTION). Content is deduplicated by SHA256 hash.
127
+ * Create Chunk Handler
128
+ */
129
+ createChunkRaw(requestParameters: CreateChunkOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ChunkResponse>>;
130
+ /**
131
+ * Create a new chunk with content. The chunk is created as a child of the specified parent (must be DOCUMENT_VERSION or SECTION). Content is deduplicated by SHA256 hash.
132
+ * Create Chunk Handler
133
+ */
134
+ createChunk(requestParameters: CreateChunkOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ChunkResponse>;
135
+ /**
136
+ * Delete a chunk. The chunk is deleted via its PathPart (cascading delete). The associated ChunkContent may remain if shared by other chunks.
137
+ * Delete Chunk Handler
138
+ */
139
+ deleteChunkRaw(requestParameters: DeleteChunkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
140
+ /**
141
+ * Delete a chunk. The chunk is deleted via its PathPart (cascading delete). The associated ChunkContent may remain if shared by other chunks.
142
+ * Delete Chunk Handler
143
+ */
144
+ deleteChunk(requestParameters: DeleteChunkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
145
+ /**
146
+ * Get a chunk by its ID, including content.
147
+ * Get Chunk Handler
148
+ */
149
+ getChunkRaw(requestParameters: GetChunkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ChunkResponse>>;
150
+ /**
151
+ * Get a chunk by its ID, including content.
152
+ * Get Chunk Handler
153
+ */
154
+ getChunk(requestParameters: GetChunkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ChunkResponse>;
155
+ /**
156
+ * Update chunk content by creating a new content row. The old content row is preserved (not deleted). If the new content matches an existing content hash, it will be deduplicated.
157
+ * Update Chunk Content Handler
158
+ */
159
+ updateChunkContentRaw(requestParameters: UpdateChunkContentOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ChunkResponse>>;
160
+ /**
161
+ * Update chunk content by creating a new content row. The old content row is preserved (not deleted). If the new content matches an existing content hash, it will be deduplicated.
162
+ * Update Chunk Content Handler
163
+ */
164
+ updateChunkContent(requestParameters: UpdateChunkContentOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ChunkResponse>;
165
+ /**
166
+ * Update chunk metadata by merging with existing metadata. The provided metadata is shallow-merged into the existing chunk_metadata.
167
+ * Update Chunk Metadata Handler
168
+ */
169
+ updateChunkMetadataRaw(requestParameters: UpdateChunkMetadataOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ChunkResponse>>;
170
+ /**
171
+ * Update chunk metadata by merging with existing metadata. The provided metadata is shallow-merged into the existing chunk_metadata.
172
+ * Update Chunk Metadata Handler
173
+ */
174
+ updateChunkMetadata(requestParameters: UpdateChunkMetadataOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ChunkResponse>;
175
+ }