@knowledge-stack/ksapi 1.20.1 → 1.22.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 (68) hide show
  1. package/.openapi-generator/FILES +2 -1
  2. package/README.md +2 -2
  3. package/dist/apis/DocumentsApi.d.ts +4 -0
  4. package/dist/apis/DocumentsApi.js +6 -0
  5. package/dist/apis/FoldersApi.d.ts +10 -4
  6. package/dist/apis/FoldersApi.js +11 -2
  7. package/dist/apis/PathPartsApi.d.ts +67 -5
  8. package/dist/apis/PathPartsApi.js +76 -2
  9. package/dist/apis/TagsApi.d.ts +1 -63
  10. package/dist/apis/TagsApi.js +0 -72
  11. package/dist/apis/ThreadsApi.d.ts +33 -0
  12. package/dist/apis/ThreadsApi.js +37 -0
  13. package/dist/esm/apis/DocumentsApi.d.ts +4 -0
  14. package/dist/esm/apis/DocumentsApi.js +6 -0
  15. package/dist/esm/apis/FoldersApi.d.ts +10 -4
  16. package/dist/esm/apis/FoldersApi.js +11 -2
  17. package/dist/esm/apis/PathPartsApi.d.ts +67 -5
  18. package/dist/esm/apis/PathPartsApi.js +77 -3
  19. package/dist/esm/apis/TagsApi.d.ts +1 -63
  20. package/dist/esm/apis/TagsApi.js +1 -73
  21. package/dist/esm/apis/ThreadsApi.d.ts +33 -0
  22. package/dist/esm/apis/ThreadsApi.js +37 -0
  23. package/dist/esm/models/BulkTagRequest.d.ts +47 -0
  24. package/dist/esm/models/BulkTagRequest.js +49 -0
  25. package/dist/esm/models/DocumentResponse.d.ts +7 -0
  26. package/dist/esm/models/DocumentResponse.js +3 -0
  27. package/dist/esm/models/FolderDocumentResponse.d.ts +7 -0
  28. package/dist/esm/models/FolderDocumentResponse.js +3 -0
  29. package/dist/esm/models/FolderResponse.d.ts +7 -0
  30. package/dist/esm/models/FolderResponse.js +3 -0
  31. package/dist/esm/models/PathPartResponse.d.ts +7 -0
  32. package/dist/esm/models/PathPartResponse.js +3 -0
  33. package/dist/esm/models/PathPartTagsResponse.d.ts +48 -0
  34. package/dist/esm/models/PathPartTagsResponse.js +45 -0
  35. package/dist/esm/models/index.d.ts +2 -1
  36. package/dist/esm/models/index.js +2 -1
  37. package/dist/models/BulkTagRequest.d.ts +47 -0
  38. package/dist/models/BulkTagRequest.js +57 -0
  39. package/dist/models/DocumentResponse.d.ts +7 -0
  40. package/dist/models/DocumentResponse.js +3 -0
  41. package/dist/models/FolderDocumentResponse.d.ts +7 -0
  42. package/dist/models/FolderDocumentResponse.js +3 -0
  43. package/dist/models/FolderResponse.d.ts +7 -0
  44. package/dist/models/FolderResponse.js +3 -0
  45. package/dist/models/PathPartResponse.d.ts +7 -0
  46. package/dist/models/PathPartResponse.js +3 -0
  47. package/dist/models/PathPartTagsResponse.d.ts +48 -0
  48. package/dist/models/PathPartTagsResponse.js +53 -0
  49. package/dist/models/index.d.ts +2 -1
  50. package/dist/models/index.js +2 -1
  51. package/package.json +1 -1
  52. package/src/apis/DocumentsApi.ts +12 -0
  53. package/src/apis/FoldersApi.ts +22 -4
  54. package/src/apis/PathPartsApi.ts +156 -4
  55. package/src/apis/TagsApi.ts +0 -146
  56. package/src/apis/ThreadsApi.ts +72 -0
  57. package/src/models/BulkTagRequest.ts +87 -0
  58. package/src/models/DocumentResponse.ts +15 -0
  59. package/src/models/FolderDocumentResponse.ts +15 -0
  60. package/src/models/FolderResponse.ts +16 -0
  61. package/src/models/PathPartResponse.ts +15 -0
  62. package/src/models/PathPartTagsResponse.ts +91 -0
  63. package/src/models/index.ts +2 -1
  64. package/dist/esm/models/TagPathPartRequest.d.ts +0 -47
  65. package/dist/esm/models/TagPathPartRequest.js +0 -44
  66. package/dist/models/TagPathPartRequest.d.ts +0 -47
  67. package/dist/models/TagPathPartRequest.js +0 -52
  68. package/src/models/TagPathPartRequest.ts +0 -83
@@ -13,6 +13,14 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
+ import type { TagResponse } from './TagResponse';
17
+ import {
18
+ TagResponseFromJSON,
19
+ TagResponseFromJSONTyped,
20
+ TagResponseToJSON,
21
+ TagResponseToJSONTyped,
22
+ } from './TagResponse';
23
+
16
24
  /**
17
25
  * Folder response model.
18
26
  * @export
@@ -73,6 +81,12 @@ export interface FolderResponse {
73
81
  * @memberof FolderResponse
74
82
  */
75
83
  updatedAt: Date;
84
+ /**
85
+ * Tags attached to this folder
86
+ * @type {Array<TagResponse>}
87
+ * @memberof FolderResponse
88
+ */
89
+ tags?: Array<TagResponse> | null;
76
90
  }
77
91
 
78
92
  /**
@@ -110,6 +124,7 @@ export function FolderResponseFromJSONTyped(json: any, ignoreDiscriminator: bool
110
124
  'tenantId': json['tenant_id'],
111
125
  'createdAt': (new Date(json['created_at'])),
112
126
  'updatedAt': (new Date(json['updated_at'])),
127
+ 'tags': json['tags'] == null ? undefined : ((json['tags'] as Array<any>).map(TagResponseFromJSON)),
113
128
  };
114
129
  }
115
130
 
@@ -133,6 +148,7 @@ export function FolderResponseToJSONTyped(value?: FolderResponse | null, ignoreD
133
148
  'tenant_id': value['tenantId'],
134
149
  'created_at': value['createdAt'].toISOString(),
135
150
  'updated_at': value['updatedAt'].toISOString(),
151
+ 'tags': value['tags'] == null ? undefined : ((value['tags'] as Array<any>).map(TagResponseToJSON)),
136
152
  };
137
153
  }
138
154
 
@@ -20,6 +20,13 @@ import {
20
20
  PartTypeToJSON,
21
21
  PartTypeToJSONTyped,
22
22
  } from './PartType';
23
+ import type { TagResponse } from './TagResponse';
24
+ import {
25
+ TagResponseFromJSON,
26
+ TagResponseFromJSONTyped,
27
+ TagResponseToJSON,
28
+ TagResponseToJSONTyped,
29
+ } from './TagResponse';
23
30
 
24
31
  /**
25
32
  * Generic path part response model.
@@ -69,6 +76,12 @@ export interface PathPartResponse {
69
76
  * @memberof PathPartResponse
70
77
  */
71
78
  systemManaged: boolean;
79
+ /**
80
+ * Tags attached to this path part
81
+ * @type {Array<TagResponse>}
82
+ * @memberof PathPartResponse
83
+ */
84
+ tags?: Array<TagResponse> | null;
72
85
  /**
73
86
  * Creation timestamp
74
87
  * @type {Date}
@@ -118,6 +131,7 @@ export function PathPartResponseFromJSONTyped(json: any, ignoreDiscriminator: bo
118
131
  'metadataObjId': json['metadata_obj_id'],
119
132
  'materializedPath': json['materialized_path'],
120
133
  'systemManaged': json['system_managed'],
134
+ 'tags': json['tags'] == null ? undefined : ((json['tags'] as Array<any>).map(TagResponseFromJSON)),
121
135
  'createdAt': (new Date(json['created_at'])),
122
136
  'updatedAt': (new Date(json['updated_at'])),
123
137
  };
@@ -141,6 +155,7 @@ export function PathPartResponseToJSONTyped(value?: PathPartResponse | null, ign
141
155
  'metadata_obj_id': value['metadataObjId'],
142
156
  'materialized_path': value['materializedPath'],
143
157
  'system_managed': value['systemManaged'],
158
+ 'tags': value['tags'] == null ? undefined : ((value['tags'] as Array<any>).map(TagResponseToJSON)),
144
159
  'created_at': value['createdAt'].toISOString(),
145
160
  'updated_at': value['updatedAt'].toISOString(),
146
161
  };
@@ -0,0 +1,91 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Knowledge Stack API
5
+ * Knowledge Stack backend API for authentication and knowledge management
6
+ *
7
+ * The version of the OpenAPI document: 0.1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { TagResponse } from './TagResponse';
17
+ import {
18
+ TagResponseFromJSON,
19
+ TagResponseFromJSONTyped,
20
+ TagResponseToJSON,
21
+ TagResponseToJSONTyped,
22
+ } from './TagResponse';
23
+
24
+ /**
25
+ * Response containing the current tags for a path part.
26
+ * @export
27
+ * @interface PathPartTagsResponse
28
+ */
29
+ export interface PathPartTagsResponse {
30
+ /**
31
+ * Tags attached to the path part
32
+ * @type {Array<TagResponse>}
33
+ * @memberof PathPartTagsResponse
34
+ */
35
+ tags: Array<TagResponse>;
36
+ }
37
+
38
+ /**
39
+ * Check if a given object implements the PathPartTagsResponse interface.
40
+ */
41
+ export function instanceOfPathPartTagsResponse(value: object): value is PathPartTagsResponse {
42
+ if (!('tags' in value) || value['tags'] === undefined) return false;
43
+ return true;
44
+ }
45
+
46
+ export function PathPartTagsResponseFromJSON(json: any): PathPartTagsResponse {
47
+ return PathPartTagsResponseFromJSONTyped(json, false);
48
+ }
49
+
50
+ export function PathPartTagsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PathPartTagsResponse {
51
+ if (json == null) {
52
+ return json;
53
+ }
54
+ return {
55
+
56
+ 'tags': ((json['tags'] as Array<any>).map(TagResponseFromJSON)),
57
+ };
58
+ }
59
+
60
+ export function PathPartTagsResponseToJSON(json: any): PathPartTagsResponse {
61
+ return PathPartTagsResponseToJSONTyped(json, false);
62
+ }
63
+
64
+ export function PathPartTagsResponseToJSONTyped(value?: PathPartTagsResponse | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'tags': ((value['tags'] as Array<any>).map(TagResponseToJSON)),
72
+ };
73
+ }
74
+
75
+ export const PathPartTagsResponsePropertyValidationAttributesMap: {
76
+ [property: string]: {
77
+ maxLength?: number,
78
+ minLength?: number,
79
+ pattern?: string,
80
+ maximum?: number,
81
+ exclusiveMaximum?: boolean,
82
+ minimum?: number,
83
+ exclusiveMinimum?: boolean,
84
+ multipleOf?: number,
85
+ maxItems?: number,
86
+ minItems?: number,
87
+ uniqueItems?: boolean
88
+ }
89
+ } = {
90
+ }
91
+
@@ -1,5 +1,6 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
+ export * from './BulkTagRequest';
3
4
  export * from './ChunkLineageResponse';
4
5
  export * from './ChunkMetadataInput';
5
6
  export * from './ChunkMetadataOutput';
@@ -62,6 +63,7 @@ export * from './PasswordResetRequest';
62
63
  export * from './PasswordResetWithTokenRequest';
63
64
  export * from './PathOrder';
64
65
  export * from './PathPartResponse';
66
+ export * from './PathPartTagsResponse';
65
67
  export * from './PermissionCapability';
66
68
  export * from './PermissionResponse';
67
69
  export * from './PipelineState';
@@ -72,7 +74,6 @@ export * from './RootResponse';
72
74
  export * from './ScoredChunkResponse';
73
75
  export * from './SectionResponse';
74
76
  export * from './SignInRequest';
75
- export * from './TagPathPartRequest';
76
77
  export * from './TagResponse';
77
78
  export * from './TenantResponse';
78
79
  export * from './TenantUserInTenantResponse';
@@ -1,47 +0,0 @@
1
- /**
2
- * Knowledge Stack API
3
- * Knowledge Stack backend API for authentication and knowledge management
4
- *
5
- * The version of the OpenAPI document: 0.1.0
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- /**
13
- * Request to attach/detach a tag to/from a path part.
14
- * @export
15
- * @interface TagPathPartRequest
16
- */
17
- export interface TagPathPartRequest {
18
- /**
19
- * PathPart ID to attach the tag to
20
- * @type {string}
21
- * @memberof TagPathPartRequest
22
- */
23
- pathPartId: string;
24
- }
25
- /**
26
- * Check if a given object implements the TagPathPartRequest interface.
27
- */
28
- export declare function instanceOfTagPathPartRequest(value: object): value is TagPathPartRequest;
29
- export declare function TagPathPartRequestFromJSON(json: any): TagPathPartRequest;
30
- export declare function TagPathPartRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): TagPathPartRequest;
31
- export declare function TagPathPartRequestToJSON(json: any): TagPathPartRequest;
32
- export declare function TagPathPartRequestToJSONTyped(value?: TagPathPartRequest | null, ignoreDiscriminator?: boolean): any;
33
- export declare const TagPathPartRequestPropertyValidationAttributesMap: {
34
- [property: string]: {
35
- maxLength?: number;
36
- minLength?: number;
37
- pattern?: string;
38
- maximum?: number;
39
- exclusiveMaximum?: boolean;
40
- minimum?: number;
41
- exclusiveMinimum?: boolean;
42
- multipleOf?: number;
43
- maxItems?: number;
44
- minItems?: number;
45
- uniqueItems?: boolean;
46
- };
47
- };
@@ -1,44 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Knowledge Stack API
5
- * Knowledge Stack backend API for authentication and knowledge management
6
- *
7
- * The version of the OpenAPI document: 0.1.0
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
- /**
15
- * Check if a given object implements the TagPathPartRequest interface.
16
- */
17
- export function instanceOfTagPathPartRequest(value) {
18
- if (!('pathPartId' in value) || value['pathPartId'] === undefined)
19
- return false;
20
- return true;
21
- }
22
- export function TagPathPartRequestFromJSON(json) {
23
- return TagPathPartRequestFromJSONTyped(json, false);
24
- }
25
- export function TagPathPartRequestFromJSONTyped(json, ignoreDiscriminator) {
26
- if (json == null) {
27
- return json;
28
- }
29
- return {
30
- 'pathPartId': json['path_part_id'],
31
- };
32
- }
33
- export function TagPathPartRequestToJSON(json) {
34
- return TagPathPartRequestToJSONTyped(json, false);
35
- }
36
- export function TagPathPartRequestToJSONTyped(value, ignoreDiscriminator = false) {
37
- if (value == null) {
38
- return value;
39
- }
40
- return {
41
- 'path_part_id': value['pathPartId'],
42
- };
43
- }
44
- export const TagPathPartRequestPropertyValidationAttributesMap = {};
@@ -1,47 +0,0 @@
1
- /**
2
- * Knowledge Stack API
3
- * Knowledge Stack backend API for authentication and knowledge management
4
- *
5
- * The version of the OpenAPI document: 0.1.0
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- /**
13
- * Request to attach/detach a tag to/from a path part.
14
- * @export
15
- * @interface TagPathPartRequest
16
- */
17
- export interface TagPathPartRequest {
18
- /**
19
- * PathPart ID to attach the tag to
20
- * @type {string}
21
- * @memberof TagPathPartRequest
22
- */
23
- pathPartId: string;
24
- }
25
- /**
26
- * Check if a given object implements the TagPathPartRequest interface.
27
- */
28
- export declare function instanceOfTagPathPartRequest(value: object): value is TagPathPartRequest;
29
- export declare function TagPathPartRequestFromJSON(json: any): TagPathPartRequest;
30
- export declare function TagPathPartRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): TagPathPartRequest;
31
- export declare function TagPathPartRequestToJSON(json: any): TagPathPartRequest;
32
- export declare function TagPathPartRequestToJSONTyped(value?: TagPathPartRequest | null, ignoreDiscriminator?: boolean): any;
33
- export declare const TagPathPartRequestPropertyValidationAttributesMap: {
34
- [property: string]: {
35
- maxLength?: number;
36
- minLength?: number;
37
- pattern?: string;
38
- maximum?: number;
39
- exclusiveMaximum?: boolean;
40
- minimum?: number;
41
- exclusiveMinimum?: boolean;
42
- multipleOf?: number;
43
- maxItems?: number;
44
- minItems?: number;
45
- uniqueItems?: boolean;
46
- };
47
- };
@@ -1,52 +0,0 @@
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.TagPathPartRequestPropertyValidationAttributesMap = void 0;
17
- exports.instanceOfTagPathPartRequest = instanceOfTagPathPartRequest;
18
- exports.TagPathPartRequestFromJSON = TagPathPartRequestFromJSON;
19
- exports.TagPathPartRequestFromJSONTyped = TagPathPartRequestFromJSONTyped;
20
- exports.TagPathPartRequestToJSON = TagPathPartRequestToJSON;
21
- exports.TagPathPartRequestToJSONTyped = TagPathPartRequestToJSONTyped;
22
- /**
23
- * Check if a given object implements the TagPathPartRequest interface.
24
- */
25
- function instanceOfTagPathPartRequest(value) {
26
- if (!('pathPartId' in value) || value['pathPartId'] === undefined)
27
- return false;
28
- return true;
29
- }
30
- function TagPathPartRequestFromJSON(json) {
31
- return TagPathPartRequestFromJSONTyped(json, false);
32
- }
33
- function TagPathPartRequestFromJSONTyped(json, ignoreDiscriminator) {
34
- if (json == null) {
35
- return json;
36
- }
37
- return {
38
- 'pathPartId': json['path_part_id'],
39
- };
40
- }
41
- function TagPathPartRequestToJSON(json) {
42
- return TagPathPartRequestToJSONTyped(json, false);
43
- }
44
- function TagPathPartRequestToJSONTyped(value, ignoreDiscriminator = false) {
45
- if (value == null) {
46
- return value;
47
- }
48
- return {
49
- 'path_part_id': value['pathPartId'],
50
- };
51
- }
52
- exports.TagPathPartRequestPropertyValidationAttributesMap = {};
@@ -1,83 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Knowledge Stack API
5
- * Knowledge Stack backend API for authentication and knowledge management
6
- *
7
- * The version of the OpenAPI document: 0.1.0
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
-
15
- import { mapValues } from '../runtime';
16
- /**
17
- * Request to attach/detach a tag to/from a path part.
18
- * @export
19
- * @interface TagPathPartRequest
20
- */
21
- export interface TagPathPartRequest {
22
- /**
23
- * PathPart ID to attach the tag to
24
- * @type {string}
25
- * @memberof TagPathPartRequest
26
- */
27
- pathPartId: string;
28
- }
29
-
30
- /**
31
- * Check if a given object implements the TagPathPartRequest interface.
32
- */
33
- export function instanceOfTagPathPartRequest(value: object): value is TagPathPartRequest {
34
- if (!('pathPartId' in value) || value['pathPartId'] === undefined) return false;
35
- return true;
36
- }
37
-
38
- export function TagPathPartRequestFromJSON(json: any): TagPathPartRequest {
39
- return TagPathPartRequestFromJSONTyped(json, false);
40
- }
41
-
42
- export function TagPathPartRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): TagPathPartRequest {
43
- if (json == null) {
44
- return json;
45
- }
46
- return {
47
-
48
- 'pathPartId': json['path_part_id'],
49
- };
50
- }
51
-
52
- export function TagPathPartRequestToJSON(json: any): TagPathPartRequest {
53
- return TagPathPartRequestToJSONTyped(json, false);
54
- }
55
-
56
- export function TagPathPartRequestToJSONTyped(value?: TagPathPartRequest | null, ignoreDiscriminator: boolean = false): any {
57
- if (value == null) {
58
- return value;
59
- }
60
-
61
- return {
62
-
63
- 'path_part_id': value['pathPartId'],
64
- };
65
- }
66
-
67
- export const TagPathPartRequestPropertyValidationAttributesMap: {
68
- [property: string]: {
69
- maxLength?: number,
70
- minLength?: number,
71
- pattern?: string,
72
- maximum?: number,
73
- exclusiveMaximum?: boolean,
74
- minimum?: number,
75
- exclusiveMinimum?: boolean,
76
- multipleOf?: number,
77
- maxItems?: number,
78
- minItems?: number,
79
- uniqueItems?: boolean
80
- }
81
- } = {
82
- }
83
-