@knowledge-stack/ksapi 1.52.0 → 1.52.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @knowledge-stack/ksapi@1.52.0
1
+ # @knowledge-stack/ksapi@1.52.1
2
2
 
3
3
  A TypeScript SDK client for the localhost API.
4
4
 
@@ -298,7 +298,7 @@ and is automatically generated by the
298
298
  [OpenAPI Generator](https://openapi-generator.tech) project:
299
299
 
300
300
  - API version: `0.1.0`
301
- - Package version: `1.52.0`
301
+ - Package version: `1.52.1`
302
302
  - Generator version: `7.20.0`
303
303
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
304
304
 
@@ -251,7 +251,7 @@ export interface ChunksApiInterface {
251
251
  */
252
252
  updateChunkMetadataRequestOpts(requestParameters: UpdateChunkMetadataOperationRequest): Promise<runtime.RequestOpts>;
253
253
  /**
254
- * Update chunk metadata by merging with existing metadata. The provided metadata is shallow-merged into the existing chunk_metadata.
254
+ * Update chunk metadata and/or move the chunk. The provided metadata is shallow-merged into the existing chunk_metadata. Move params (parent_path_part_id, prev_sibling_path_id, move_to_head) allow reparenting or reordering the chunk within the same document version.
255
255
  * @summary Update Chunk Metadata Handler
256
256
  * @param {string} chunkId
257
257
  * @param {UpdateChunkMetadataRequest} updateChunkMetadataRequest
@@ -263,7 +263,7 @@ export interface ChunksApiInterface {
263
263
  */
264
264
  updateChunkMetadataRaw(requestParameters: UpdateChunkMetadataOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ChunkResponse>>;
265
265
  /**
266
- * Update chunk metadata by merging with existing metadata. The provided metadata is shallow-merged into the existing chunk_metadata.
266
+ * Update chunk metadata and/or move the chunk. The provided metadata is shallow-merged into the existing chunk_metadata. Move params (parent_path_part_id, prev_sibling_path_id, move_to_head) allow reparenting or reordering the chunk within the same document version.
267
267
  * Update Chunk Metadata Handler
268
268
  */
269
269
  updateChunkMetadata(requestParameters: UpdateChunkMetadataOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ChunkResponse>;
@@ -375,12 +375,12 @@ export declare class ChunksApi extends runtime.BaseAPI implements ChunksApiInter
375
375
  */
376
376
  updateChunkMetadataRequestOpts(requestParameters: UpdateChunkMetadataOperationRequest): Promise<runtime.RequestOpts>;
377
377
  /**
378
- * Update chunk metadata by merging with existing metadata. The provided metadata is shallow-merged into the existing chunk_metadata.
378
+ * Update chunk metadata and/or move the chunk. The provided metadata is shallow-merged into the existing chunk_metadata. Move params (parent_path_part_id, prev_sibling_path_id, move_to_head) allow reparenting or reordering the chunk within the same document version.
379
379
  * Update Chunk Metadata Handler
380
380
  */
381
381
  updateChunkMetadataRaw(requestParameters: UpdateChunkMetadataOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ChunkResponse>>;
382
382
  /**
383
- * Update chunk metadata by merging with existing metadata. The provided metadata is shallow-merged into the existing chunk_metadata.
383
+ * Update chunk metadata and/or move the chunk. The provided metadata is shallow-merged into the existing chunk_metadata. Move params (parent_path_part_id, prev_sibling_path_id, move_to_head) allow reparenting or reordering the chunk within the same document version.
384
384
  * Update Chunk Metadata Handler
385
385
  */
386
386
  updateChunkMetadata(requestParameters: UpdateChunkMetadataOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ChunkResponse>;
@@ -376,7 +376,7 @@ class ChunksApi extends runtime.BaseAPI {
376
376
  });
377
377
  }
378
378
  /**
379
- * Update chunk metadata by merging with existing metadata. The provided metadata is shallow-merged into the existing chunk_metadata.
379
+ * Update chunk metadata and/or move the chunk. The provided metadata is shallow-merged into the existing chunk_metadata. Move params (parent_path_part_id, prev_sibling_path_id, move_to_head) allow reparenting or reordering the chunk within the same document version.
380
380
  * Update Chunk Metadata Handler
381
381
  */
382
382
  updateChunkMetadataRaw(requestParameters, initOverrides) {
@@ -387,7 +387,7 @@ class ChunksApi extends runtime.BaseAPI {
387
387
  });
388
388
  }
389
389
  /**
390
- * Update chunk metadata by merging with existing metadata. The provided metadata is shallow-merged into the existing chunk_metadata.
390
+ * Update chunk metadata and/or move the chunk. The provided metadata is shallow-merged into the existing chunk_metadata. Move params (parent_path_part_id, prev_sibling_path_id, move_to_head) allow reparenting or reordering the chunk within the same document version.
391
391
  * Update Chunk Metadata Handler
392
392
  */
393
393
  updateChunkMetadata(requestParameters, initOverrides) {
@@ -251,7 +251,7 @@ export interface ChunksApiInterface {
251
251
  */
252
252
  updateChunkMetadataRequestOpts(requestParameters: UpdateChunkMetadataOperationRequest): Promise<runtime.RequestOpts>;
253
253
  /**
254
- * Update chunk metadata by merging with existing metadata. The provided metadata is shallow-merged into the existing chunk_metadata.
254
+ * Update chunk metadata and/or move the chunk. The provided metadata is shallow-merged into the existing chunk_metadata. Move params (parent_path_part_id, prev_sibling_path_id, move_to_head) allow reparenting or reordering the chunk within the same document version.
255
255
  * @summary Update Chunk Metadata Handler
256
256
  * @param {string} chunkId
257
257
  * @param {UpdateChunkMetadataRequest} updateChunkMetadataRequest
@@ -263,7 +263,7 @@ export interface ChunksApiInterface {
263
263
  */
264
264
  updateChunkMetadataRaw(requestParameters: UpdateChunkMetadataOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ChunkResponse>>;
265
265
  /**
266
- * Update chunk metadata by merging with existing metadata. The provided metadata is shallow-merged into the existing chunk_metadata.
266
+ * Update chunk metadata and/or move the chunk. The provided metadata is shallow-merged into the existing chunk_metadata. Move params (parent_path_part_id, prev_sibling_path_id, move_to_head) allow reparenting or reordering the chunk within the same document version.
267
267
  * Update Chunk Metadata Handler
268
268
  */
269
269
  updateChunkMetadata(requestParameters: UpdateChunkMetadataOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ChunkResponse>;
@@ -375,12 +375,12 @@ export declare class ChunksApi extends runtime.BaseAPI implements ChunksApiInter
375
375
  */
376
376
  updateChunkMetadataRequestOpts(requestParameters: UpdateChunkMetadataOperationRequest): Promise<runtime.RequestOpts>;
377
377
  /**
378
- * Update chunk metadata by merging with existing metadata. The provided metadata is shallow-merged into the existing chunk_metadata.
378
+ * Update chunk metadata and/or move the chunk. The provided metadata is shallow-merged into the existing chunk_metadata. Move params (parent_path_part_id, prev_sibling_path_id, move_to_head) allow reparenting or reordering the chunk within the same document version.
379
379
  * Update Chunk Metadata Handler
380
380
  */
381
381
  updateChunkMetadataRaw(requestParameters: UpdateChunkMetadataOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ChunkResponse>>;
382
382
  /**
383
- * Update chunk metadata by merging with existing metadata. The provided metadata is shallow-merged into the existing chunk_metadata.
383
+ * Update chunk metadata and/or move the chunk. The provided metadata is shallow-merged into the existing chunk_metadata. Move params (parent_path_part_id, prev_sibling_path_id, move_to_head) allow reparenting or reordering the chunk within the same document version.
384
384
  * Update Chunk Metadata Handler
385
385
  */
386
386
  updateChunkMetadata(requestParameters: UpdateChunkMetadataOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ChunkResponse>;
@@ -373,7 +373,7 @@ export class ChunksApi extends runtime.BaseAPI {
373
373
  });
374
374
  }
375
375
  /**
376
- * Update chunk metadata by merging with existing metadata. The provided metadata is shallow-merged into the existing chunk_metadata.
376
+ * Update chunk metadata and/or move the chunk. The provided metadata is shallow-merged into the existing chunk_metadata. Move params (parent_path_part_id, prev_sibling_path_id, move_to_head) allow reparenting or reordering the chunk within the same document version.
377
377
  * Update Chunk Metadata Handler
378
378
  */
379
379
  updateChunkMetadataRaw(requestParameters, initOverrides) {
@@ -384,7 +384,7 @@ export class ChunksApi extends runtime.BaseAPI {
384
384
  });
385
385
  }
386
386
  /**
387
- * Update chunk metadata by merging with existing metadata. The provided metadata is shallow-merged into the existing chunk_metadata.
387
+ * Update chunk metadata and/or move the chunk. The provided metadata is shallow-merged into the existing chunk_metadata. Move params (parent_path_part_id, prev_sibling_path_id, move_to_head) allow reparenting or reordering the chunk within the same document version.
388
388
  * Update Chunk Metadata Handler
389
389
  */
390
390
  updateChunkMetadata(requestParameters, initOverrides) {
@@ -9,7 +9,6 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { ChunkType } from './ChunkType';
13
12
  /**
14
13
  * Request to update chunk content (creates new content row).
15
14
  * @export
@@ -22,12 +21,6 @@ export interface UpdateChunkContentRequest {
22
21
  * @memberof UpdateChunkContentRequest
23
22
  */
24
23
  content: string;
25
- /**
26
- *
27
- * @type {ChunkType}
28
- * @memberof UpdateChunkContentRequest
29
- */
30
- chunkType?: ChunkType;
31
24
  }
32
25
  /**
33
26
  * Check if a given object implements the UpdateChunkContentRequest interface.
@@ -11,7 +11,6 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
- import { ChunkTypeFromJSON, ChunkTypeToJSON, } from './ChunkType';
15
14
  /**
16
15
  * Check if a given object implements the UpdateChunkContentRequest interface.
17
16
  */
@@ -29,7 +28,6 @@ export function UpdateChunkContentRequestFromJSONTyped(json, ignoreDiscriminator
29
28
  }
30
29
  return {
31
30
  'content': json['content'],
32
- 'chunkType': json['chunk_type'] == null ? undefined : ChunkTypeFromJSON(json['chunk_type']),
33
31
  };
34
32
  }
35
33
  export function UpdateChunkContentRequestToJSON(json) {
@@ -41,7 +39,6 @@ export function UpdateChunkContentRequestToJSONTyped(value, ignoreDiscriminator
41
39
  }
42
40
  return {
43
41
  'content': value['content'],
44
- 'chunk_type': ChunkTypeToJSON(value['chunkType']),
45
42
  };
46
43
  }
47
44
  export const UpdateChunkContentRequestPropertyValidationAttributesMap = {
@@ -11,7 +11,7 @@
11
11
  */
12
12
  import type { ChunkMetadataInput } from './ChunkMetadataInput';
13
13
  /**
14
- * Request to update chunk metadata (merge).
14
+ * Request to update chunk metadata and/or move the chunk.
15
15
  * @export
16
16
  * @interface UpdateChunkMetadataRequest
17
17
  */
@@ -21,7 +21,25 @@ export interface UpdateChunkMetadataRequest {
21
21
  * @type {ChunkMetadataInput}
22
22
  * @memberof UpdateChunkMetadataRequest
23
23
  */
24
- chunkMetadata: ChunkMetadataInput;
24
+ chunkMetadata?: ChunkMetadataInput;
25
+ /**
26
+ * Reparent to this PathPart ID (must be DOCUMENT_VERSION or SECTION in the same document version)
27
+ * @type {string}
28
+ * @memberof UpdateChunkMetadataRequest
29
+ */
30
+ parentPathPartId?: string | null;
31
+ /**
32
+ * Move after this sibling PathPart ID (within new or current parent)
33
+ * @type {string}
34
+ * @memberof UpdateChunkMetadataRequest
35
+ */
36
+ prevSiblingPathId?: string | null;
37
+ /**
38
+ * Set to true to move to head of sibling list
39
+ * @type {boolean}
40
+ * @memberof UpdateChunkMetadataRequest
41
+ */
42
+ moveToHead?: boolean;
25
43
  }
26
44
  /**
27
45
  * Check if a given object implements the UpdateChunkMetadataRequest interface.
@@ -16,8 +16,6 @@ import { ChunkMetadataInputFromJSON, ChunkMetadataInputToJSON, } from './ChunkMe
16
16
  * Check if a given object implements the UpdateChunkMetadataRequest interface.
17
17
  */
18
18
  export function instanceOfUpdateChunkMetadataRequest(value) {
19
- if (!('chunkMetadata' in value) || value['chunkMetadata'] === undefined)
20
- return false;
21
19
  return true;
22
20
  }
23
21
  export function UpdateChunkMetadataRequestFromJSON(json) {
@@ -28,7 +26,10 @@ export function UpdateChunkMetadataRequestFromJSONTyped(json, ignoreDiscriminato
28
26
  return json;
29
27
  }
30
28
  return {
31
- 'chunkMetadata': ChunkMetadataInputFromJSON(json['chunk_metadata']),
29
+ 'chunkMetadata': json['chunk_metadata'] == null ? undefined : ChunkMetadataInputFromJSON(json['chunk_metadata']),
30
+ 'parentPathPartId': json['parent_path_part_id'] == null ? undefined : json['parent_path_part_id'],
31
+ 'prevSiblingPathId': json['prev_sibling_path_id'] == null ? undefined : json['prev_sibling_path_id'],
32
+ 'moveToHead': json['move_to_head'] == null ? undefined : json['move_to_head'],
32
33
  };
33
34
  }
34
35
  export function UpdateChunkMetadataRequestToJSON(json) {
@@ -40,6 +41,9 @@ export function UpdateChunkMetadataRequestToJSONTyped(value, ignoreDiscriminator
40
41
  }
41
42
  return {
42
43
  'chunk_metadata': ChunkMetadataInputToJSON(value['chunkMetadata']),
44
+ 'parent_path_part_id': value['parentPathPartId'],
45
+ 'prev_sibling_path_id': value['prevSiblingPathId'],
46
+ 'move_to_head': value['moveToHead'],
43
47
  };
44
48
  }
45
49
  export const UpdateChunkMetadataRequestPropertyValidationAttributesMap = {};
@@ -39,6 +39,12 @@ export interface UpdateSectionRequest {
39
39
  * @memberof UpdateSectionRequest
40
40
  */
41
41
  moveToHead?: boolean;
42
+ /**
43
+ * Reparent to this PathPart ID (must be DOCUMENT_VERSION or SECTION in the same document version)
44
+ * @type {string}
45
+ * @memberof UpdateSectionRequest
46
+ */
47
+ parentPathPartId?: string | null;
42
48
  }
43
49
  /**
44
50
  * Check if a given object implements the UpdateSectionRequest interface.
@@ -29,6 +29,7 @@ export function UpdateSectionRequestFromJSONTyped(json, ignoreDiscriminator) {
29
29
  'pageNumber': json['page_number'] == null ? undefined : json['page_number'],
30
30
  'prevSiblingPathId': json['prev_sibling_path_id'] == null ? undefined : json['prev_sibling_path_id'],
31
31
  'moveToHead': json['move_to_head'] == null ? undefined : json['move_to_head'],
32
+ 'parentPathPartId': json['parent_path_part_id'] == null ? undefined : json['parent_path_part_id'],
32
33
  };
33
34
  }
34
35
  export function UpdateSectionRequestToJSON(json) {
@@ -43,6 +44,7 @@ export function UpdateSectionRequestToJSONTyped(value, ignoreDiscriminator = fal
43
44
  'page_number': value['pageNumber'],
44
45
  'prev_sibling_path_id': value['prevSiblingPathId'],
45
46
  'move_to_head': value['moveToHead'],
47
+ 'parent_path_part_id': value['parentPathPartId'],
46
48
  };
47
49
  }
48
50
  export const UpdateSectionRequestPropertyValidationAttributesMap = {
@@ -9,7 +9,6 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { ChunkType } from './ChunkType';
13
12
  /**
14
13
  * Request to update chunk content (creates new content row).
15
14
  * @export
@@ -22,12 +21,6 @@ export interface UpdateChunkContentRequest {
22
21
  * @memberof UpdateChunkContentRequest
23
22
  */
24
23
  content: string;
25
- /**
26
- *
27
- * @type {ChunkType}
28
- * @memberof UpdateChunkContentRequest
29
- */
30
- chunkType?: ChunkType;
31
24
  }
32
25
  /**
33
26
  * Check if a given object implements the UpdateChunkContentRequest interface.
@@ -19,7 +19,6 @@ exports.UpdateChunkContentRequestFromJSON = UpdateChunkContentRequestFromJSON;
19
19
  exports.UpdateChunkContentRequestFromJSONTyped = UpdateChunkContentRequestFromJSONTyped;
20
20
  exports.UpdateChunkContentRequestToJSON = UpdateChunkContentRequestToJSON;
21
21
  exports.UpdateChunkContentRequestToJSONTyped = UpdateChunkContentRequestToJSONTyped;
22
- const ChunkType_1 = require("./ChunkType");
23
22
  /**
24
23
  * Check if a given object implements the UpdateChunkContentRequest interface.
25
24
  */
@@ -37,7 +36,6 @@ function UpdateChunkContentRequestFromJSONTyped(json, ignoreDiscriminator) {
37
36
  }
38
37
  return {
39
38
  'content': json['content'],
40
- 'chunkType': json['chunk_type'] == null ? undefined : (0, ChunkType_1.ChunkTypeFromJSON)(json['chunk_type']),
41
39
  };
42
40
  }
43
41
  function UpdateChunkContentRequestToJSON(json) {
@@ -49,7 +47,6 @@ function UpdateChunkContentRequestToJSONTyped(value, ignoreDiscriminator = false
49
47
  }
50
48
  return {
51
49
  'content': value['content'],
52
- 'chunk_type': (0, ChunkType_1.ChunkTypeToJSON)(value['chunkType']),
53
50
  };
54
51
  }
55
52
  exports.UpdateChunkContentRequestPropertyValidationAttributesMap = {
@@ -11,7 +11,7 @@
11
11
  */
12
12
  import type { ChunkMetadataInput } from './ChunkMetadataInput';
13
13
  /**
14
- * Request to update chunk metadata (merge).
14
+ * Request to update chunk metadata and/or move the chunk.
15
15
  * @export
16
16
  * @interface UpdateChunkMetadataRequest
17
17
  */
@@ -21,7 +21,25 @@ export interface UpdateChunkMetadataRequest {
21
21
  * @type {ChunkMetadataInput}
22
22
  * @memberof UpdateChunkMetadataRequest
23
23
  */
24
- chunkMetadata: ChunkMetadataInput;
24
+ chunkMetadata?: ChunkMetadataInput;
25
+ /**
26
+ * Reparent to this PathPart ID (must be DOCUMENT_VERSION or SECTION in the same document version)
27
+ * @type {string}
28
+ * @memberof UpdateChunkMetadataRequest
29
+ */
30
+ parentPathPartId?: string | null;
31
+ /**
32
+ * Move after this sibling PathPart ID (within new or current parent)
33
+ * @type {string}
34
+ * @memberof UpdateChunkMetadataRequest
35
+ */
36
+ prevSiblingPathId?: string | null;
37
+ /**
38
+ * Set to true to move to head of sibling list
39
+ * @type {boolean}
40
+ * @memberof UpdateChunkMetadataRequest
41
+ */
42
+ moveToHead?: boolean;
25
43
  }
26
44
  /**
27
45
  * Check if a given object implements the UpdateChunkMetadataRequest interface.
@@ -24,8 +24,6 @@ const ChunkMetadataInput_1 = require("./ChunkMetadataInput");
24
24
  * Check if a given object implements the UpdateChunkMetadataRequest interface.
25
25
  */
26
26
  function instanceOfUpdateChunkMetadataRequest(value) {
27
- if (!('chunkMetadata' in value) || value['chunkMetadata'] === undefined)
28
- return false;
29
27
  return true;
30
28
  }
31
29
  function UpdateChunkMetadataRequestFromJSON(json) {
@@ -36,7 +34,10 @@ function UpdateChunkMetadataRequestFromJSONTyped(json, ignoreDiscriminator) {
36
34
  return json;
37
35
  }
38
36
  return {
39
- 'chunkMetadata': (0, ChunkMetadataInput_1.ChunkMetadataInputFromJSON)(json['chunk_metadata']),
37
+ 'chunkMetadata': json['chunk_metadata'] == null ? undefined : (0, ChunkMetadataInput_1.ChunkMetadataInputFromJSON)(json['chunk_metadata']),
38
+ 'parentPathPartId': json['parent_path_part_id'] == null ? undefined : json['parent_path_part_id'],
39
+ 'prevSiblingPathId': json['prev_sibling_path_id'] == null ? undefined : json['prev_sibling_path_id'],
40
+ 'moveToHead': json['move_to_head'] == null ? undefined : json['move_to_head'],
40
41
  };
41
42
  }
42
43
  function UpdateChunkMetadataRequestToJSON(json) {
@@ -48,6 +49,9 @@ function UpdateChunkMetadataRequestToJSONTyped(value, ignoreDiscriminator = fals
48
49
  }
49
50
  return {
50
51
  'chunk_metadata': (0, ChunkMetadataInput_1.ChunkMetadataInputToJSON)(value['chunkMetadata']),
52
+ 'parent_path_part_id': value['parentPathPartId'],
53
+ 'prev_sibling_path_id': value['prevSiblingPathId'],
54
+ 'move_to_head': value['moveToHead'],
51
55
  };
52
56
  }
53
57
  exports.UpdateChunkMetadataRequestPropertyValidationAttributesMap = {};
@@ -39,6 +39,12 @@ export interface UpdateSectionRequest {
39
39
  * @memberof UpdateSectionRequest
40
40
  */
41
41
  moveToHead?: boolean;
42
+ /**
43
+ * Reparent to this PathPart ID (must be DOCUMENT_VERSION or SECTION in the same document version)
44
+ * @type {string}
45
+ * @memberof UpdateSectionRequest
46
+ */
47
+ parentPathPartId?: string | null;
42
48
  }
43
49
  /**
44
50
  * Check if a given object implements the UpdateSectionRequest interface.
@@ -37,6 +37,7 @@ function UpdateSectionRequestFromJSONTyped(json, ignoreDiscriminator) {
37
37
  'pageNumber': json['page_number'] == null ? undefined : json['page_number'],
38
38
  'prevSiblingPathId': json['prev_sibling_path_id'] == null ? undefined : json['prev_sibling_path_id'],
39
39
  'moveToHead': json['move_to_head'] == null ? undefined : json['move_to_head'],
40
+ 'parentPathPartId': json['parent_path_part_id'] == null ? undefined : json['parent_path_part_id'],
40
41
  };
41
42
  }
42
43
  function UpdateSectionRequestToJSON(json) {
@@ -51,6 +52,7 @@ function UpdateSectionRequestToJSONTyped(value, ignoreDiscriminator = false) {
51
52
  'page_number': value['pageNumber'],
52
53
  'prev_sibling_path_id': value['prevSiblingPathId'],
53
54
  'move_to_head': value['moveToHead'],
55
+ 'parent_path_part_id': value['parentPathPartId'],
54
56
  };
55
57
  }
56
58
  exports.UpdateSectionRequestPropertyValidationAttributesMap = {
package/docs/ChunksApi.md CHANGED
@@ -545,7 +545,7 @@ No authorization required
545
545
 
546
546
  Update Chunk Metadata Handler
547
547
 
548
- Update chunk metadata by merging with existing metadata. The provided metadata is shallow-merged into the existing chunk_metadata.
548
+ Update chunk metadata and/or move the chunk. The provided metadata is shallow-merged into the existing chunk_metadata. Move params (parent_path_part_id, prev_sibling_path_id, move_to_head) allow reparenting or reordering the chunk within the same document version.
549
549
 
550
550
  ### Example
551
551
 
@@ -8,7 +8,6 @@ Request to update chunk content (creates new content row).
8
8
  Name | Type
9
9
  ------------ | -------------
10
10
  `content` | string
11
- `chunkType` | [ChunkType](ChunkType.md)
12
11
 
13
12
  ## Example
14
13
 
@@ -18,7 +17,6 @@ import type { UpdateChunkContentRequest } from '@knowledge-stack/ksapi'
18
17
  // TODO: Update the object below with actual values
19
18
  const example = {
20
19
  "content": null,
21
- "chunkType": null,
22
20
  } satisfies UpdateChunkContentRequest
23
21
 
24
22
  console.log(example)
@@ -1,13 +1,16 @@
1
1
 
2
2
  # UpdateChunkMetadataRequest
3
3
 
4
- Request to update chunk metadata (merge).
4
+ Request to update chunk metadata and/or move the chunk.
5
5
 
6
6
  ## Properties
7
7
 
8
8
  Name | Type
9
9
  ------------ | -------------
10
10
  `chunkMetadata` | [ChunkMetadataInput](ChunkMetadataInput.md)
11
+ `parentPathPartId` | string
12
+ `prevSiblingPathId` | string
13
+ `moveToHead` | boolean
11
14
 
12
15
  ## Example
13
16
 
@@ -17,6 +20,9 @@ import type { UpdateChunkMetadataRequest } from '@knowledge-stack/ksapi'
17
20
  // TODO: Update the object below with actual values
18
21
  const example = {
19
22
  "chunkMetadata": null,
23
+ "parentPathPartId": null,
24
+ "prevSiblingPathId": null,
25
+ "moveToHead": null,
20
26
  } satisfies UpdateChunkMetadataRequest
21
27
 
22
28
  console.log(example)
@@ -11,6 +11,7 @@ Name | Type
11
11
  `pageNumber` | number
12
12
  `prevSiblingPathId` | string
13
13
  `moveToHead` | boolean
14
+ `parentPathPartId` | string
14
15
 
15
16
  ## Example
16
17
 
@@ -23,6 +24,7 @@ const example = {
23
24
  "pageNumber": null,
24
25
  "prevSiblingPathId": null,
25
26
  "moveToHead": null,
27
+ "parentPathPartId": null,
26
28
  } satisfies UpdateSectionRequest
27
29
 
28
30
  console.log(example)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knowledge-stack/ksapi",
3
- "version": "1.52.0",
3
+ "version": "1.52.1",
4
4
  "description": "OpenAPI client for @knowledge-stack/ksapi",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -316,7 +316,7 @@ export interface ChunksApiInterface {
316
316
  updateChunkMetadataRequestOpts(requestParameters: UpdateChunkMetadataOperationRequest): Promise<runtime.RequestOpts>;
317
317
 
318
318
  /**
319
- * Update chunk metadata by merging with existing metadata. The provided metadata is shallow-merged into the existing chunk_metadata.
319
+ * Update chunk metadata and/or move the chunk. The provided metadata is shallow-merged into the existing chunk_metadata. Move params (parent_path_part_id, prev_sibling_path_id, move_to_head) allow reparenting or reordering the chunk within the same document version.
320
320
  * @summary Update Chunk Metadata Handler
321
321
  * @param {string} chunkId
322
322
  * @param {UpdateChunkMetadataRequest} updateChunkMetadataRequest
@@ -329,7 +329,7 @@ export interface ChunksApiInterface {
329
329
  updateChunkMetadataRaw(requestParameters: UpdateChunkMetadataOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ChunkResponse>>;
330
330
 
331
331
  /**
332
- * Update chunk metadata by merging with existing metadata. The provided metadata is shallow-merged into the existing chunk_metadata.
332
+ * Update chunk metadata and/or move the chunk. The provided metadata is shallow-merged into the existing chunk_metadata. Move params (parent_path_part_id, prev_sibling_path_id, move_to_head) allow reparenting or reordering the chunk within the same document version.
333
333
  * Update Chunk Metadata Handler
334
334
  */
335
335
  updateChunkMetadata(requestParameters: UpdateChunkMetadataOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ChunkResponse>;
@@ -756,7 +756,7 @@ export class ChunksApi extends runtime.BaseAPI implements ChunksApiInterface {
756
756
  }
757
757
 
758
758
  /**
759
- * Update chunk metadata by merging with existing metadata. The provided metadata is shallow-merged into the existing chunk_metadata.
759
+ * Update chunk metadata and/or move the chunk. The provided metadata is shallow-merged into the existing chunk_metadata. Move params (parent_path_part_id, prev_sibling_path_id, move_to_head) allow reparenting or reordering the chunk within the same document version.
760
760
  * Update Chunk Metadata Handler
761
761
  */
762
762
  async updateChunkMetadataRaw(requestParameters: UpdateChunkMetadataOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ChunkResponse>> {
@@ -767,7 +767,7 @@ export class ChunksApi extends runtime.BaseAPI implements ChunksApiInterface {
767
767
  }
768
768
 
769
769
  /**
770
- * Update chunk metadata by merging with existing metadata. The provided metadata is shallow-merged into the existing chunk_metadata.
770
+ * Update chunk metadata and/or move the chunk. The provided metadata is shallow-merged into the existing chunk_metadata. Move params (parent_path_part_id, prev_sibling_path_id, move_to_head) allow reparenting or reordering the chunk within the same document version.
771
771
  * Update Chunk Metadata Handler
772
772
  */
773
773
  async updateChunkMetadata(requestParameters: UpdateChunkMetadataOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ChunkResponse> {
@@ -13,14 +13,6 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
- import type { ChunkType } from './ChunkType';
17
- import {
18
- ChunkTypeFromJSON,
19
- ChunkTypeFromJSONTyped,
20
- ChunkTypeToJSON,
21
- ChunkTypeToJSONTyped,
22
- } from './ChunkType';
23
-
24
16
  /**
25
17
  * Request to update chunk content (creates new content row).
26
18
  * @export
@@ -33,16 +25,8 @@ export interface UpdateChunkContentRequest {
33
25
  * @memberof UpdateChunkContentRequest
34
26
  */
35
27
  content: string;
36
- /**
37
- *
38
- * @type {ChunkType}
39
- * @memberof UpdateChunkContentRequest
40
- */
41
- chunkType?: ChunkType;
42
28
  }
43
29
 
44
-
45
-
46
30
  /**
47
31
  * Check if a given object implements the UpdateChunkContentRequest interface.
48
32
  */
@@ -62,7 +46,6 @@ export function UpdateChunkContentRequestFromJSONTyped(json: any, ignoreDiscrimi
62
46
  return {
63
47
 
64
48
  'content': json['content'],
65
- 'chunkType': json['chunk_type'] == null ? undefined : ChunkTypeFromJSON(json['chunk_type']),
66
49
  };
67
50
  }
68
51
 
@@ -78,7 +61,6 @@ export function UpdateChunkContentRequestToJSONTyped(value?: UpdateChunkContentR
78
61
  return {
79
62
 
80
63
  'content': value['content'],
81
- 'chunk_type': ChunkTypeToJSON(value['chunkType']),
82
64
  };
83
65
  }
84
66
 
@@ -22,7 +22,7 @@ import {
22
22
  } from './ChunkMetadataInput';
23
23
 
24
24
  /**
25
- * Request to update chunk metadata (merge).
25
+ * Request to update chunk metadata and/or move the chunk.
26
26
  * @export
27
27
  * @interface UpdateChunkMetadataRequest
28
28
  */
@@ -32,14 +32,31 @@ export interface UpdateChunkMetadataRequest {
32
32
  * @type {ChunkMetadataInput}
33
33
  * @memberof UpdateChunkMetadataRequest
34
34
  */
35
- chunkMetadata: ChunkMetadataInput;
35
+ chunkMetadata?: ChunkMetadataInput;
36
+ /**
37
+ * Reparent to this PathPart ID (must be DOCUMENT_VERSION or SECTION in the same document version)
38
+ * @type {string}
39
+ * @memberof UpdateChunkMetadataRequest
40
+ */
41
+ parentPathPartId?: string | null;
42
+ /**
43
+ * Move after this sibling PathPart ID (within new or current parent)
44
+ * @type {string}
45
+ * @memberof UpdateChunkMetadataRequest
46
+ */
47
+ prevSiblingPathId?: string | null;
48
+ /**
49
+ * Set to true to move to head of sibling list
50
+ * @type {boolean}
51
+ * @memberof UpdateChunkMetadataRequest
52
+ */
53
+ moveToHead?: boolean;
36
54
  }
37
55
 
38
56
  /**
39
57
  * Check if a given object implements the UpdateChunkMetadataRequest interface.
40
58
  */
41
59
  export function instanceOfUpdateChunkMetadataRequest(value: object): value is UpdateChunkMetadataRequest {
42
- if (!('chunkMetadata' in value) || value['chunkMetadata'] === undefined) return false;
43
60
  return true;
44
61
  }
45
62
 
@@ -53,7 +70,10 @@ export function UpdateChunkMetadataRequestFromJSONTyped(json: any, ignoreDiscrim
53
70
  }
54
71
  return {
55
72
 
56
- 'chunkMetadata': ChunkMetadataInputFromJSON(json['chunk_metadata']),
73
+ 'chunkMetadata': json['chunk_metadata'] == null ? undefined : ChunkMetadataInputFromJSON(json['chunk_metadata']),
74
+ 'parentPathPartId': json['parent_path_part_id'] == null ? undefined : json['parent_path_part_id'],
75
+ 'prevSiblingPathId': json['prev_sibling_path_id'] == null ? undefined : json['prev_sibling_path_id'],
76
+ 'moveToHead': json['move_to_head'] == null ? undefined : json['move_to_head'],
57
77
  };
58
78
  }
59
79
 
@@ -69,6 +89,9 @@ export function UpdateChunkMetadataRequestToJSONTyped(value?: UpdateChunkMetadat
69
89
  return {
70
90
 
71
91
  'chunk_metadata': ChunkMetadataInputToJSON(value['chunkMetadata']),
92
+ 'parent_path_part_id': value['parentPathPartId'],
93
+ 'prev_sibling_path_id': value['prevSiblingPathId'],
94
+ 'move_to_head': value['moveToHead'],
72
95
  };
73
96
  }
74
97
 
@@ -43,6 +43,12 @@ export interface UpdateSectionRequest {
43
43
  * @memberof UpdateSectionRequest
44
44
  */
45
45
  moveToHead?: boolean;
46
+ /**
47
+ * Reparent to this PathPart ID (must be DOCUMENT_VERSION or SECTION in the same document version)
48
+ * @type {string}
49
+ * @memberof UpdateSectionRequest
50
+ */
51
+ parentPathPartId?: string | null;
46
52
  }
47
53
 
48
54
  /**
@@ -66,6 +72,7 @@ export function UpdateSectionRequestFromJSONTyped(json: any, ignoreDiscriminator
66
72
  'pageNumber': json['page_number'] == null ? undefined : json['page_number'],
67
73
  'prevSiblingPathId': json['prev_sibling_path_id'] == null ? undefined : json['prev_sibling_path_id'],
68
74
  'moveToHead': json['move_to_head'] == null ? undefined : json['move_to_head'],
75
+ 'parentPathPartId': json['parent_path_part_id'] == null ? undefined : json['parent_path_part_id'],
69
76
  };
70
77
  }
71
78
 
@@ -84,6 +91,7 @@ export function UpdateSectionRequestToJSONTyped(value?: UpdateSectionRequest | n
84
91
  'page_number': value['pageNumber'],
85
92
  'prev_sibling_path_id': value['prevSiblingPathId'],
86
93
  'move_to_head': value['moveToHead'],
94
+ 'parent_path_part_id': value['parentPathPartId'],
87
95
  };
88
96
  }
89
97