@knowledge-stack/ksapi 1.51.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.
Files changed (49) hide show
  1. package/.openapi-generator/FILES +4 -0
  2. package/README.md +4 -2
  3. package/dist/apis/ChunksApi.d.ts +4 -4
  4. package/dist/apis/ChunksApi.js +2 -2
  5. package/dist/apis/FeaturesApi.d.ts +59 -0
  6. package/dist/apis/FeaturesApi.js +70 -0
  7. package/dist/apis/index.d.ts +1 -0
  8. package/dist/apis/index.js +1 -0
  9. package/dist/esm/apis/ChunksApi.d.ts +4 -4
  10. package/dist/esm/apis/ChunksApi.js +2 -2
  11. package/dist/esm/apis/FeaturesApi.d.ts +59 -0
  12. package/dist/esm/apis/FeaturesApi.js +66 -0
  13. package/dist/esm/apis/index.d.ts +1 -0
  14. package/dist/esm/apis/index.js +1 -0
  15. package/dist/esm/models/FeaturesResponse.d.ts +54 -0
  16. package/dist/esm/models/FeaturesResponse.js +49 -0
  17. package/dist/esm/models/UpdateChunkContentRequest.d.ts +0 -7
  18. package/dist/esm/models/UpdateChunkContentRequest.js +0 -3
  19. package/dist/esm/models/UpdateChunkMetadataRequest.d.ts +20 -2
  20. package/dist/esm/models/UpdateChunkMetadataRequest.js +7 -3
  21. package/dist/esm/models/UpdateSectionRequest.d.ts +6 -0
  22. package/dist/esm/models/UpdateSectionRequest.js +2 -0
  23. package/dist/esm/models/index.d.ts +1 -0
  24. package/dist/esm/models/index.js +1 -0
  25. package/dist/models/FeaturesResponse.d.ts +54 -0
  26. package/dist/models/FeaturesResponse.js +57 -0
  27. package/dist/models/UpdateChunkContentRequest.d.ts +0 -7
  28. package/dist/models/UpdateChunkContentRequest.js +0 -3
  29. package/dist/models/UpdateChunkMetadataRequest.d.ts +20 -2
  30. package/dist/models/UpdateChunkMetadataRequest.js +7 -3
  31. package/dist/models/UpdateSectionRequest.d.ts +6 -0
  32. package/dist/models/UpdateSectionRequest.js +2 -0
  33. package/dist/models/index.d.ts +1 -0
  34. package/dist/models/index.js +1 -0
  35. package/docs/ChunksApi.md +1 -1
  36. package/docs/FeaturesApi.md +68 -0
  37. package/docs/FeaturesResponse.md +36 -0
  38. package/docs/UpdateChunkContentRequest.md +0 -2
  39. package/docs/UpdateChunkMetadataRequest.md +7 -1
  40. package/docs/UpdateSectionRequest.md +2 -0
  41. package/package.json +1 -1
  42. package/src/apis/ChunksApi.ts +4 -4
  43. package/src/apis/FeaturesApi.ts +100 -0
  44. package/src/apis/index.ts +1 -0
  45. package/src/models/FeaturesResponse.ts +102 -0
  46. package/src/models/UpdateChunkContentRequest.ts +0 -18
  47. package/src/models/UpdateChunkMetadataRequest.ts +27 -4
  48. package/src/models/UpdateSectionRequest.ts +8 -0
  49. package/src/models/index.ts +1 -0
@@ -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 = {
@@ -38,6 +38,7 @@ export * from './EmailSentResponse';
38
38
  export * from './EmailVerificationRequest';
39
39
  export * from './EnrichedCitation';
40
40
  export * from './EnrichedThreadMessageContent';
41
+ export * from './FeaturesResponse';
41
42
  export * from './FolderAction';
42
43
  export * from './FolderActionResponse';
43
44
  export * from './FolderResponse';
@@ -40,6 +40,7 @@ export * from './EmailSentResponse';
40
40
  export * from './EmailVerificationRequest';
41
41
  export * from './EnrichedCitation';
42
42
  export * from './EnrichedThreadMessageContent';
43
+ export * from './FeaturesResponse';
43
44
  export * from './FolderAction';
44
45
  export * from './FolderActionResponse';
45
46
  export * from './FolderResponse';
@@ -0,0 +1,54 @@
1
+ /**
2
+ * Knowledge Stack API
3
+ * Knowledge Stack backend API for authentication and knowledge management
4
+ *
5
+ * The version of the OpenAPI document: 0.1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { SupportedLanguage } from './SupportedLanguage';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface FeaturesResponse
17
+ */
18
+ export interface FeaturesResponse {
19
+ /**
20
+ *
21
+ * @type {boolean}
22
+ * @memberof FeaturesResponse
23
+ */
24
+ googleLoginEnabled: boolean;
25
+ /**
26
+ *
27
+ * @type {SupportedLanguage}
28
+ * @memberof FeaturesResponse
29
+ */
30
+ defaultFrontendLanguage: SupportedLanguage;
31
+ }
32
+ /**
33
+ * Check if a given object implements the FeaturesResponse interface.
34
+ */
35
+ export declare function instanceOfFeaturesResponse(value: object): value is FeaturesResponse;
36
+ export declare function FeaturesResponseFromJSON(json: any): FeaturesResponse;
37
+ export declare function FeaturesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): FeaturesResponse;
38
+ export declare function FeaturesResponseToJSON(json: any): FeaturesResponse;
39
+ export declare function FeaturesResponseToJSONTyped(value?: FeaturesResponse | null, ignoreDiscriminator?: boolean): any;
40
+ export declare const FeaturesResponsePropertyValidationAttributesMap: {
41
+ [property: string]: {
42
+ maxLength?: number;
43
+ minLength?: number;
44
+ pattern?: string;
45
+ maximum?: number;
46
+ exclusiveMaximum?: boolean;
47
+ minimum?: number;
48
+ exclusiveMinimum?: boolean;
49
+ multipleOf?: number;
50
+ maxItems?: number;
51
+ minItems?: number;
52
+ uniqueItems?: boolean;
53
+ };
54
+ };
@@ -0,0 +1,57 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Knowledge Stack API
6
+ * Knowledge Stack backend API for authentication and knowledge management
7
+ *
8
+ * The version of the OpenAPI document: 0.1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.FeaturesResponsePropertyValidationAttributesMap = void 0;
17
+ exports.instanceOfFeaturesResponse = instanceOfFeaturesResponse;
18
+ exports.FeaturesResponseFromJSON = FeaturesResponseFromJSON;
19
+ exports.FeaturesResponseFromJSONTyped = FeaturesResponseFromJSONTyped;
20
+ exports.FeaturesResponseToJSON = FeaturesResponseToJSON;
21
+ exports.FeaturesResponseToJSONTyped = FeaturesResponseToJSONTyped;
22
+ const SupportedLanguage_1 = require("./SupportedLanguage");
23
+ /**
24
+ * Check if a given object implements the FeaturesResponse interface.
25
+ */
26
+ function instanceOfFeaturesResponse(value) {
27
+ if (!('googleLoginEnabled' in value) || value['googleLoginEnabled'] === undefined)
28
+ return false;
29
+ if (!('defaultFrontendLanguage' in value) || value['defaultFrontendLanguage'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ function FeaturesResponseFromJSON(json) {
34
+ return FeaturesResponseFromJSONTyped(json, false);
35
+ }
36
+ function FeaturesResponseFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'googleLoginEnabled': json['google_login_enabled'],
42
+ 'defaultFrontendLanguage': (0, SupportedLanguage_1.SupportedLanguageFromJSON)(json['default_frontend_language']),
43
+ };
44
+ }
45
+ function FeaturesResponseToJSON(json) {
46
+ return FeaturesResponseToJSONTyped(json, false);
47
+ }
48
+ function FeaturesResponseToJSONTyped(value, ignoreDiscriminator = false) {
49
+ if (value == null) {
50
+ return value;
51
+ }
52
+ return {
53
+ 'google_login_enabled': value['googleLoginEnabled'],
54
+ 'default_frontend_language': (0, SupportedLanguage_1.SupportedLanguageToJSON)(value['defaultFrontendLanguage']),
55
+ };
56
+ }
57
+ exports.FeaturesResponsePropertyValidationAttributesMap = {};
@@ -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 = {
@@ -38,6 +38,7 @@ export * from './EmailSentResponse';
38
38
  export * from './EmailVerificationRequest';
39
39
  export * from './EnrichedCitation';
40
40
  export * from './EnrichedThreadMessageContent';
41
+ export * from './FeaturesResponse';
41
42
  export * from './FolderAction';
42
43
  export * from './FolderActionResponse';
43
44
  export * from './FolderResponse';
@@ -56,6 +56,7 @@ __exportStar(require("./EmailSentResponse"), exports);
56
56
  __exportStar(require("./EmailVerificationRequest"), exports);
57
57
  __exportStar(require("./EnrichedCitation"), exports);
58
58
  __exportStar(require("./EnrichedThreadMessageContent"), exports);
59
+ __exportStar(require("./FeaturesResponse"), exports);
59
60
  __exportStar(require("./FolderAction"), exports);
60
61
  __exportStar(require("./FolderActionResponse"), exports);
61
62
  __exportStar(require("./FolderResponse"), exports);
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
 
@@ -0,0 +1,68 @@
1
+ # FeaturesApi
2
+
3
+ All URIs are relative to *http://localhost:8000*
4
+
5
+ | Method | HTTP request | Description |
6
+ |------------- | ------------- | -------------|
7
+ | [**getFeatures**](FeaturesApi.md#getfeatures) | **GET** /v1/features | Get Features Handler |
8
+
9
+
10
+
11
+ ## getFeatures
12
+
13
+ > FeaturesResponse getFeatures()
14
+
15
+ Get Features Handler
16
+
17
+ Return public feature flags for the frontend.
18
+
19
+ ### Example
20
+
21
+ ```ts
22
+ import {
23
+ Configuration,
24
+ FeaturesApi,
25
+ } from '@knowledge-stack/ksapi';
26
+ import type { GetFeaturesRequest } from '@knowledge-stack/ksapi';
27
+
28
+ async function example() {
29
+ console.log("🚀 Testing @knowledge-stack/ksapi SDK...");
30
+ const api = new FeaturesApi();
31
+
32
+ try {
33
+ const data = await api.getFeatures();
34
+ console.log(data);
35
+ } catch (error) {
36
+ console.error(error);
37
+ }
38
+ }
39
+
40
+ // Run the test
41
+ example().catch(console.error);
42
+ ```
43
+
44
+ ### Parameters
45
+
46
+ This endpoint does not need any parameter.
47
+
48
+ ### Return type
49
+
50
+ [**FeaturesResponse**](FeaturesResponse.md)
51
+
52
+ ### Authorization
53
+
54
+ No authorization required
55
+
56
+ ### HTTP request headers
57
+
58
+ - **Content-Type**: Not defined
59
+ - **Accept**: `application/json`
60
+
61
+
62
+ ### HTTP response details
63
+ | Status code | Description | Response headers |
64
+ |-------------|-------------|------------------|
65
+ | **200** | Successful Response | - |
66
+
67
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
68
+
@@ -0,0 +1,36 @@
1
+
2
+ # FeaturesResponse
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `googleLoginEnabled` | boolean
10
+ `defaultFrontendLanguage` | [SupportedLanguage](SupportedLanguage.md)
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import type { FeaturesResponse } from '@knowledge-stack/ksapi'
16
+
17
+ // TODO: Update the object below with actual values
18
+ const example = {
19
+ "googleLoginEnabled": null,
20
+ "defaultFrontendLanguage": null,
21
+ } satisfies FeaturesResponse
22
+
23
+ console.log(example)
24
+
25
+ // Convert the instance to a JSON string
26
+ const exampleJSON: string = JSON.stringify(example)
27
+ console.log(exampleJSON)
28
+
29
+ // Parse the JSON string back to an object
30
+ const exampleParsed = JSON.parse(exampleJSON) as FeaturesResponse
31
+ console.log(exampleParsed)
32
+ ```
33
+
34
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
35
+
36
+
@@ -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.51.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> {