@knowledge-stack/ksapi 1.1.0 → 1.3.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 (63) hide show
  1. package/.openapi-generator/FILES +10 -0
  2. package/README.md +2 -2
  3. package/dist/apis/FoldersApi.d.ts +179 -0
  4. package/dist/apis/FoldersApi.js +206 -0
  5. package/dist/apis/PathPartsApi.d.ts +65 -0
  6. package/dist/apis/PathPartsApi.js +79 -0
  7. package/dist/apis/index.d.ts +2 -0
  8. package/dist/apis/index.js +2 -0
  9. package/dist/esm/apis/FoldersApi.d.ts +179 -0
  10. package/dist/esm/apis/FoldersApi.js +202 -0
  11. package/dist/esm/apis/PathPartsApi.d.ts +65 -0
  12. package/dist/esm/apis/PathPartsApi.js +75 -0
  13. package/dist/esm/apis/index.d.ts +2 -0
  14. package/dist/esm/apis/index.js +2 -0
  15. package/dist/esm/models/CreateFolderRequest.d.ts +53 -0
  16. package/dist/esm/models/CreateFolderRequest.js +53 -0
  17. package/dist/esm/models/FolderResponse.d.ts +83 -0
  18. package/dist/esm/models/FolderResponse.js +68 -0
  19. package/dist/esm/models/PaginatedResponseFolderResponse.d.ts +66 -0
  20. package/dist/esm/models/PaginatedResponseFolderResponse.js +70 -0
  21. package/dist/esm/models/PaginatedResponsePathPartResponse.d.ts +66 -0
  22. package/dist/esm/models/PaginatedResponsePathPartResponse.js +70 -0
  23. package/dist/esm/models/PartType.d.ts +30 -0
  24. package/dist/esm/models/PartType.js +48 -0
  25. package/dist/esm/models/PathOrder.d.ts +32 -0
  26. package/dist/esm/models/PathOrder.js +50 -0
  27. package/dist/esm/models/PathPartResponse.d.ts +84 -0
  28. package/dist/esm/models/PathPartResponse.js +69 -0
  29. package/dist/esm/models/UpdateFolderRequest.d.ts +53 -0
  30. package/dist/esm/models/UpdateFolderRequest.js +49 -0
  31. package/dist/esm/models/index.d.ts +8 -0
  32. package/dist/esm/models/index.js +8 -0
  33. package/dist/models/CreateFolderRequest.d.ts +53 -0
  34. package/dist/models/CreateFolderRequest.js +61 -0
  35. package/dist/models/FolderResponse.d.ts +83 -0
  36. package/dist/models/FolderResponse.js +76 -0
  37. package/dist/models/PaginatedResponseFolderResponse.d.ts +66 -0
  38. package/dist/models/PaginatedResponseFolderResponse.js +78 -0
  39. package/dist/models/PaginatedResponsePathPartResponse.d.ts +66 -0
  40. package/dist/models/PaginatedResponsePathPartResponse.js +78 -0
  41. package/dist/models/PartType.d.ts +30 -0
  42. package/dist/models/PartType.js +56 -0
  43. package/dist/models/PathOrder.d.ts +32 -0
  44. package/dist/models/PathOrder.js +58 -0
  45. package/dist/models/PathPartResponse.d.ts +84 -0
  46. package/dist/models/PathPartResponse.js +77 -0
  47. package/dist/models/UpdateFolderRequest.d.ts +53 -0
  48. package/dist/models/UpdateFolderRequest.js +57 -0
  49. package/dist/models/index.d.ts +8 -0
  50. package/dist/models/index.js +8 -0
  51. package/package.json +1 -1
  52. package/src/apis/FoldersApi.ts +386 -0
  53. package/src/apis/PathPartsApi.ts +132 -0
  54. package/src/apis/index.ts +2 -0
  55. package/src/models/CreateFolderRequest.ts +96 -0
  56. package/src/models/FolderResponse.ts +137 -0
  57. package/src/models/PaginatedResponseFolderResponse.ts +130 -0
  58. package/src/models/PaginatedResponsePathPartResponse.ts +130 -0
  59. package/src/models/PartType.ts +58 -0
  60. package/src/models/PathOrder.ts +60 -0
  61. package/src/models/PathPartResponse.ts +147 -0
  62. package/src/models/UpdateFolderRequest.ts +94 -0
  63. package/src/models/index.ts +8 -0
@@ -0,0 +1,66 @@
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 { PathPartResponse } from './PathPartResponse';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface PaginatedResponsePathPartResponse
17
+ */
18
+ export interface PaginatedResponsePathPartResponse {
19
+ /**
20
+ * List of items
21
+ * @type {Array<PathPartResponse>}
22
+ * @memberof PaginatedResponsePathPartResponse
23
+ */
24
+ items: Array<PathPartResponse>;
25
+ /**
26
+ * Total number of items
27
+ * @type {number}
28
+ * @memberof PaginatedResponsePathPartResponse
29
+ */
30
+ total: number;
31
+ /**
32
+ * Number of items per page
33
+ * @type {number}
34
+ * @memberof PaginatedResponsePathPartResponse
35
+ */
36
+ limit: number;
37
+ /**
38
+ * Number of items to skip
39
+ * @type {number}
40
+ * @memberof PaginatedResponsePathPartResponse
41
+ */
42
+ offset: number;
43
+ }
44
+ /**
45
+ * Check if a given object implements the PaginatedResponsePathPartResponse interface.
46
+ */
47
+ export declare function instanceOfPaginatedResponsePathPartResponse(value: object): value is PaginatedResponsePathPartResponse;
48
+ export declare function PaginatedResponsePathPartResponseFromJSON(json: any): PaginatedResponsePathPartResponse;
49
+ export declare function PaginatedResponsePathPartResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedResponsePathPartResponse;
50
+ export declare function PaginatedResponsePathPartResponseToJSON(json: any): PaginatedResponsePathPartResponse;
51
+ export declare function PaginatedResponsePathPartResponseToJSONTyped(value?: PaginatedResponsePathPartResponse | null, ignoreDiscriminator?: boolean): any;
52
+ export declare const PaginatedResponsePathPartResponsePropertyValidationAttributesMap: {
53
+ [property: string]: {
54
+ maxLength?: number;
55
+ minLength?: number;
56
+ pattern?: string;
57
+ maximum?: number;
58
+ exclusiveMaximum?: boolean;
59
+ minimum?: number;
60
+ exclusiveMinimum?: boolean;
61
+ multipleOf?: number;
62
+ maxItems?: number;
63
+ minItems?: number;
64
+ uniqueItems?: boolean;
65
+ };
66
+ };
@@ -0,0 +1,78 @@
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.PaginatedResponsePathPartResponsePropertyValidationAttributesMap = void 0;
17
+ exports.instanceOfPaginatedResponsePathPartResponse = instanceOfPaginatedResponsePathPartResponse;
18
+ exports.PaginatedResponsePathPartResponseFromJSON = PaginatedResponsePathPartResponseFromJSON;
19
+ exports.PaginatedResponsePathPartResponseFromJSONTyped = PaginatedResponsePathPartResponseFromJSONTyped;
20
+ exports.PaginatedResponsePathPartResponseToJSON = PaginatedResponsePathPartResponseToJSON;
21
+ exports.PaginatedResponsePathPartResponseToJSONTyped = PaginatedResponsePathPartResponseToJSONTyped;
22
+ const PathPartResponse_1 = require("./PathPartResponse");
23
+ /**
24
+ * Check if a given object implements the PaginatedResponsePathPartResponse interface.
25
+ */
26
+ function instanceOfPaginatedResponsePathPartResponse(value) {
27
+ if (!('items' in value) || value['items'] === undefined)
28
+ return false;
29
+ if (!('total' in value) || value['total'] === undefined)
30
+ return false;
31
+ if (!('limit' in value) || value['limit'] === undefined)
32
+ return false;
33
+ if (!('offset' in value) || value['offset'] === undefined)
34
+ return false;
35
+ return true;
36
+ }
37
+ function PaginatedResponsePathPartResponseFromJSON(json) {
38
+ return PaginatedResponsePathPartResponseFromJSONTyped(json, false);
39
+ }
40
+ function PaginatedResponsePathPartResponseFromJSONTyped(json, ignoreDiscriminator) {
41
+ if (json == null) {
42
+ return json;
43
+ }
44
+ return {
45
+ 'items': (json['items'].map(PathPartResponse_1.PathPartResponseFromJSON)),
46
+ 'total': json['total'],
47
+ 'limit': json['limit'],
48
+ 'offset': json['offset'],
49
+ };
50
+ }
51
+ function PaginatedResponsePathPartResponseToJSON(json) {
52
+ return PaginatedResponsePathPartResponseToJSONTyped(json, false);
53
+ }
54
+ function PaginatedResponsePathPartResponseToJSONTyped(value, ignoreDiscriminator = false) {
55
+ if (value == null) {
56
+ return value;
57
+ }
58
+ return {
59
+ 'items': (value['items'].map(PathPartResponse_1.PathPartResponseToJSON)),
60
+ 'total': value['total'],
61
+ 'limit': value['limit'],
62
+ 'offset': value['offset'],
63
+ };
64
+ }
65
+ exports.PaginatedResponsePathPartResponsePropertyValidationAttributesMap = {
66
+ total: {
67
+ minimum: 0,
68
+ exclusiveMinimum: false,
69
+ },
70
+ limit: {
71
+ minimum: 1,
72
+ exclusiveMinimum: false,
73
+ },
74
+ offset: {
75
+ minimum: 0,
76
+ exclusiveMinimum: false,
77
+ },
78
+ };
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Knowledge Stack API
3
+ * Knowledge Stack backend API for authentication and knowledge management
4
+ *
5
+ * The version of the OpenAPI document: 0.1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * Type of path part in the filesystem.
14
+ * @export
15
+ */
16
+ export declare const PartType: {
17
+ readonly Folder: "FOLDER";
18
+ readonly Document: "DOCUMENT";
19
+ readonly DocumentVersion: "DOCUMENT_VERSION";
20
+ readonly Section: "SECTION";
21
+ readonly Chunk: "CHUNK";
22
+ readonly Thread: "THREAD";
23
+ readonly ThreadMessage: "THREAD_MESSAGE";
24
+ };
25
+ export type PartType = typeof PartType[keyof typeof PartType];
26
+ export declare function instanceOfPartType(value: any): boolean;
27
+ export declare function PartTypeFromJSON(json: any): PartType;
28
+ export declare function PartTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): PartType;
29
+ export declare function PartTypeToJSON(value?: PartType | null): any;
30
+ export declare function PartTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): PartType;
@@ -0,0 +1,56 @@
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.PartType = void 0;
17
+ exports.instanceOfPartType = instanceOfPartType;
18
+ exports.PartTypeFromJSON = PartTypeFromJSON;
19
+ exports.PartTypeFromJSONTyped = PartTypeFromJSONTyped;
20
+ exports.PartTypeToJSON = PartTypeToJSON;
21
+ exports.PartTypeToJSONTyped = PartTypeToJSONTyped;
22
+ /**
23
+ * Type of path part in the filesystem.
24
+ * @export
25
+ */
26
+ exports.PartType = {
27
+ Folder: 'FOLDER',
28
+ Document: 'DOCUMENT',
29
+ DocumentVersion: 'DOCUMENT_VERSION',
30
+ Section: 'SECTION',
31
+ Chunk: 'CHUNK',
32
+ Thread: 'THREAD',
33
+ ThreadMessage: 'THREAD_MESSAGE'
34
+ };
35
+ function instanceOfPartType(value) {
36
+ for (const key in exports.PartType) {
37
+ if (Object.prototype.hasOwnProperty.call(exports.PartType, key)) {
38
+ if (exports.PartType[key] === value) {
39
+ return true;
40
+ }
41
+ }
42
+ }
43
+ return false;
44
+ }
45
+ function PartTypeFromJSON(json) {
46
+ return PartTypeFromJSONTyped(json, false);
47
+ }
48
+ function PartTypeFromJSONTyped(json, ignoreDiscriminator) {
49
+ return json;
50
+ }
51
+ function PartTypeToJSON(value) {
52
+ return value;
53
+ }
54
+ function PartTypeToJSONTyped(value, ignoreDiscriminator) {
55
+ return value;
56
+ }
@@ -0,0 +1,32 @@
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
+ * Ordering strategy for path traversal results.
14
+ *
15
+ * - LOGICAL: Use prev/next_sibling_path_part_id linked list order per depth level
16
+ * - NAME: Alphabetical by path_part.name (DEFAULT)
17
+ * - UPDATED_AT: By updated_at timestamp (most recent first)
18
+ * - CREATED_AT: By created_at timestamp (oldest first)
19
+ * @export
20
+ */
21
+ export declare const PathOrder: {
22
+ readonly Logical: "LOGICAL";
23
+ readonly Name: "NAME";
24
+ readonly UpdatedAt: "UPDATED_AT";
25
+ readonly CreatedAt: "CREATED_AT";
26
+ };
27
+ export type PathOrder = typeof PathOrder[keyof typeof PathOrder];
28
+ export declare function instanceOfPathOrder(value: any): boolean;
29
+ export declare function PathOrderFromJSON(json: any): PathOrder;
30
+ export declare function PathOrderFromJSONTyped(json: any, ignoreDiscriminator: boolean): PathOrder;
31
+ export declare function PathOrderToJSON(value?: PathOrder | null): any;
32
+ export declare function PathOrderToJSONTyped(value: any, ignoreDiscriminator: boolean): PathOrder;
@@ -0,0 +1,58 @@
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.PathOrder = void 0;
17
+ exports.instanceOfPathOrder = instanceOfPathOrder;
18
+ exports.PathOrderFromJSON = PathOrderFromJSON;
19
+ exports.PathOrderFromJSONTyped = PathOrderFromJSONTyped;
20
+ exports.PathOrderToJSON = PathOrderToJSON;
21
+ exports.PathOrderToJSONTyped = PathOrderToJSONTyped;
22
+ /**
23
+ * Ordering strategy for path traversal results.
24
+ *
25
+ * - LOGICAL: Use prev/next_sibling_path_part_id linked list order per depth level
26
+ * - NAME: Alphabetical by path_part.name (DEFAULT)
27
+ * - UPDATED_AT: By updated_at timestamp (most recent first)
28
+ * - CREATED_AT: By created_at timestamp (oldest first)
29
+ * @export
30
+ */
31
+ exports.PathOrder = {
32
+ Logical: 'LOGICAL',
33
+ Name: 'NAME',
34
+ UpdatedAt: 'UPDATED_AT',
35
+ CreatedAt: 'CREATED_AT'
36
+ };
37
+ function instanceOfPathOrder(value) {
38
+ for (const key in exports.PathOrder) {
39
+ if (Object.prototype.hasOwnProperty.call(exports.PathOrder, key)) {
40
+ if (exports.PathOrder[key] === value) {
41
+ return true;
42
+ }
43
+ }
44
+ }
45
+ return false;
46
+ }
47
+ function PathOrderFromJSON(json) {
48
+ return PathOrderFromJSONTyped(json, false);
49
+ }
50
+ function PathOrderFromJSONTyped(json, ignoreDiscriminator) {
51
+ return json;
52
+ }
53
+ function PathOrderToJSON(value) {
54
+ return value;
55
+ }
56
+ function PathOrderToJSONTyped(value, ignoreDiscriminator) {
57
+ return value;
58
+ }
@@ -0,0 +1,84 @@
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 { PartType } from './PartType';
13
+ /**
14
+ * Generic path part response model.
15
+ * @export
16
+ * @interface PathPartResponse
17
+ */
18
+ export interface PathPartResponse {
19
+ /**
20
+ * PathPart ID
21
+ * @type {string}
22
+ * @memberof PathPartResponse
23
+ */
24
+ pathPartId: string;
25
+ /**
26
+ * Item name
27
+ * @type {string}
28
+ * @memberof PathPartResponse
29
+ */
30
+ name: string;
31
+ /**
32
+ * Type (FOLDER, DOCUMENT, etc.)
33
+ * @type {PartType}
34
+ * @memberof PathPartResponse
35
+ */
36
+ partType: PartType;
37
+ /**
38
+ * Parent PathPart ID
39
+ * @type {string}
40
+ * @memberof PathPartResponse
41
+ */
42
+ parentId: string;
43
+ /**
44
+ * ID of the underlying object
45
+ * @type {string}
46
+ * @memberof PathPartResponse
47
+ */
48
+ metadataObjId: string;
49
+ /**
50
+ * Creation timestamp
51
+ * @type {Date}
52
+ * @memberof PathPartResponse
53
+ */
54
+ createdAt: Date;
55
+ /**
56
+ * Last update timestamp
57
+ * @type {Date}
58
+ * @memberof PathPartResponse
59
+ */
60
+ updatedAt: Date;
61
+ }
62
+ /**
63
+ * Check if a given object implements the PathPartResponse interface.
64
+ */
65
+ export declare function instanceOfPathPartResponse(value: object): value is PathPartResponse;
66
+ export declare function PathPartResponseFromJSON(json: any): PathPartResponse;
67
+ export declare function PathPartResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PathPartResponse;
68
+ export declare function PathPartResponseToJSON(json: any): PathPartResponse;
69
+ export declare function PathPartResponseToJSONTyped(value?: PathPartResponse | null, ignoreDiscriminator?: boolean): any;
70
+ export declare const PathPartResponsePropertyValidationAttributesMap: {
71
+ [property: string]: {
72
+ maxLength?: number;
73
+ minLength?: number;
74
+ pattern?: string;
75
+ maximum?: number;
76
+ exclusiveMaximum?: boolean;
77
+ minimum?: number;
78
+ exclusiveMinimum?: boolean;
79
+ multipleOf?: number;
80
+ maxItems?: number;
81
+ minItems?: number;
82
+ uniqueItems?: boolean;
83
+ };
84
+ };
@@ -0,0 +1,77 @@
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.PathPartResponsePropertyValidationAttributesMap = void 0;
17
+ exports.instanceOfPathPartResponse = instanceOfPathPartResponse;
18
+ exports.PathPartResponseFromJSON = PathPartResponseFromJSON;
19
+ exports.PathPartResponseFromJSONTyped = PathPartResponseFromJSONTyped;
20
+ exports.PathPartResponseToJSON = PathPartResponseToJSON;
21
+ exports.PathPartResponseToJSONTyped = PathPartResponseToJSONTyped;
22
+ const PartType_1 = require("./PartType");
23
+ /**
24
+ * Check if a given object implements the PathPartResponse interface.
25
+ */
26
+ function instanceOfPathPartResponse(value) {
27
+ if (!('pathPartId' in value) || value['pathPartId'] === undefined)
28
+ return false;
29
+ if (!('name' in value) || value['name'] === undefined)
30
+ return false;
31
+ if (!('partType' in value) || value['partType'] === undefined)
32
+ return false;
33
+ if (!('parentId' in value) || value['parentId'] === undefined)
34
+ return false;
35
+ if (!('metadataObjId' in value) || value['metadataObjId'] === undefined)
36
+ return false;
37
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
38
+ return false;
39
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined)
40
+ return false;
41
+ return true;
42
+ }
43
+ function PathPartResponseFromJSON(json) {
44
+ return PathPartResponseFromJSONTyped(json, false);
45
+ }
46
+ function PathPartResponseFromJSONTyped(json, ignoreDiscriminator) {
47
+ if (json == null) {
48
+ return json;
49
+ }
50
+ return {
51
+ 'pathPartId': json['path_part_id'],
52
+ 'name': json['name'],
53
+ 'partType': (0, PartType_1.PartTypeFromJSON)(json['part_type']),
54
+ 'parentId': json['parent_id'],
55
+ 'metadataObjId': json['metadata_obj_id'],
56
+ 'createdAt': (new Date(json['created_at'])),
57
+ 'updatedAt': (new Date(json['updated_at'])),
58
+ };
59
+ }
60
+ function PathPartResponseToJSON(json) {
61
+ return PathPartResponseToJSONTyped(json, false);
62
+ }
63
+ function PathPartResponseToJSONTyped(value, ignoreDiscriminator = false) {
64
+ if (value == null) {
65
+ return value;
66
+ }
67
+ return {
68
+ 'path_part_id': value['pathPartId'],
69
+ 'name': value['name'],
70
+ 'part_type': (0, PartType_1.PartTypeToJSON)(value['partType']),
71
+ 'parent_id': value['parentId'],
72
+ 'metadata_obj_id': value['metadataObjId'],
73
+ 'created_at': value['createdAt'].toISOString(),
74
+ 'updated_at': value['updatedAt'].toISOString(),
75
+ };
76
+ }
77
+ exports.PathPartResponsePropertyValidationAttributesMap = {};
@@ -0,0 +1,53 @@
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 update a folder (rename and/or move).
14
+ * @export
15
+ * @interface UpdateFolderRequest
16
+ */
17
+ export interface UpdateFolderRequest {
18
+ /**
19
+ * New folder name
20
+ * @type {string}
21
+ * @memberof UpdateFolderRequest
22
+ */
23
+ name?: string;
24
+ /**
25
+ * New parent folder PathPart ID (for move)
26
+ * @type {string}
27
+ * @memberof UpdateFolderRequest
28
+ */
29
+ parentId?: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the UpdateFolderRequest interface.
33
+ */
34
+ export declare function instanceOfUpdateFolderRequest(value: object): value is UpdateFolderRequest;
35
+ export declare function UpdateFolderRequestFromJSON(json: any): UpdateFolderRequest;
36
+ export declare function UpdateFolderRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateFolderRequest;
37
+ export declare function UpdateFolderRequestToJSON(json: any): UpdateFolderRequest;
38
+ export declare function UpdateFolderRequestToJSONTyped(value?: UpdateFolderRequest | null, ignoreDiscriminator?: boolean): any;
39
+ export declare const UpdateFolderRequestPropertyValidationAttributesMap: {
40
+ [property: string]: {
41
+ maxLength?: number;
42
+ minLength?: number;
43
+ pattern?: string;
44
+ maximum?: number;
45
+ exclusiveMaximum?: boolean;
46
+ minimum?: number;
47
+ exclusiveMinimum?: boolean;
48
+ multipleOf?: number;
49
+ maxItems?: number;
50
+ minItems?: number;
51
+ uniqueItems?: boolean;
52
+ };
53
+ };
@@ -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.UpdateFolderRequestPropertyValidationAttributesMap = void 0;
17
+ exports.instanceOfUpdateFolderRequest = instanceOfUpdateFolderRequest;
18
+ exports.UpdateFolderRequestFromJSON = UpdateFolderRequestFromJSON;
19
+ exports.UpdateFolderRequestFromJSONTyped = UpdateFolderRequestFromJSONTyped;
20
+ exports.UpdateFolderRequestToJSON = UpdateFolderRequestToJSON;
21
+ exports.UpdateFolderRequestToJSONTyped = UpdateFolderRequestToJSONTyped;
22
+ /**
23
+ * Check if a given object implements the UpdateFolderRequest interface.
24
+ */
25
+ function instanceOfUpdateFolderRequest(value) {
26
+ return true;
27
+ }
28
+ function UpdateFolderRequestFromJSON(json) {
29
+ return UpdateFolderRequestFromJSONTyped(json, false);
30
+ }
31
+ function UpdateFolderRequestFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'name': json['name'] == null ? undefined : json['name'],
37
+ 'parentId': json['parent_id'] == null ? undefined : json['parent_id'],
38
+ };
39
+ }
40
+ function UpdateFolderRequestToJSON(json) {
41
+ return UpdateFolderRequestToJSONTyped(json, false);
42
+ }
43
+ function UpdateFolderRequestToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'name': value['name'],
49
+ 'parent_id': value['parentId'],
50
+ };
51
+ }
52
+ exports.UpdateFolderRequestPropertyValidationAttributesMap = {
53
+ name: {
54
+ maxLength: 255,
55
+ minLength: 1,
56
+ },
57
+ };
@@ -1,7 +1,9 @@
1
+ export * from './CreateFolderRequest';
1
2
  export * from './CreatePasswordUserRequest';
2
3
  export * from './CreateTenantRequest';
3
4
  export * from './EmailSentResponse';
4
5
  export * from './EmailVerificationRequest';
6
+ export * from './FolderResponse';
5
7
  export * from './HTTPValidationError';
6
8
  export * from './HealthCheckResponse';
7
9
  export * from './IdpType';
@@ -9,16 +11,22 @@ export * from './InviteResponse';
9
11
  export * from './InviteStatus';
10
12
  export * from './InviteUserRequest';
11
13
  export * from './OAuth2Config';
14
+ export * from './PaginatedResponseFolderResponse';
12
15
  export * from './PaginatedResponseInviteResponse';
16
+ export * from './PaginatedResponsePathPartResponse';
13
17
  export * from './PaginatedResponseTenantResponse';
14
18
  export * from './PaginatedResponseTenantUserInTenantResponse';
19
+ export * from './PartType';
15
20
  export * from './PasswordResetRequest';
16
21
  export * from './PasswordResetWithTokenRequest';
22
+ export * from './PathOrder';
23
+ export * from './PathPartResponse';
17
24
  export * from './RootResponse';
18
25
  export * from './SignInRequest';
19
26
  export * from './TenantResponse';
20
27
  export * from './TenantUserInTenantResponse';
21
28
  export * from './TenantUserRole';
29
+ export * from './UpdateFolderRequest';
22
30
  export * from './UpdateTenantRequest';
23
31
  export * from './UpdateUserRequest';
24
32
  export * from './UserResponse';
@@ -16,10 +16,12 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  /* tslint:disable */
18
18
  /* eslint-disable */
19
+ __exportStar(require("./CreateFolderRequest"), exports);
19
20
  __exportStar(require("./CreatePasswordUserRequest"), exports);
20
21
  __exportStar(require("./CreateTenantRequest"), exports);
21
22
  __exportStar(require("./EmailSentResponse"), exports);
22
23
  __exportStar(require("./EmailVerificationRequest"), exports);
24
+ __exportStar(require("./FolderResponse"), exports);
23
25
  __exportStar(require("./HTTPValidationError"), exports);
24
26
  __exportStar(require("./HealthCheckResponse"), exports);
25
27
  __exportStar(require("./IdpType"), exports);
@@ -27,16 +29,22 @@ __exportStar(require("./InviteResponse"), exports);
27
29
  __exportStar(require("./InviteStatus"), exports);
28
30
  __exportStar(require("./InviteUserRequest"), exports);
29
31
  __exportStar(require("./OAuth2Config"), exports);
32
+ __exportStar(require("./PaginatedResponseFolderResponse"), exports);
30
33
  __exportStar(require("./PaginatedResponseInviteResponse"), exports);
34
+ __exportStar(require("./PaginatedResponsePathPartResponse"), exports);
31
35
  __exportStar(require("./PaginatedResponseTenantResponse"), exports);
32
36
  __exportStar(require("./PaginatedResponseTenantUserInTenantResponse"), exports);
37
+ __exportStar(require("./PartType"), exports);
33
38
  __exportStar(require("./PasswordResetRequest"), exports);
34
39
  __exportStar(require("./PasswordResetWithTokenRequest"), exports);
40
+ __exportStar(require("./PathOrder"), exports);
41
+ __exportStar(require("./PathPartResponse"), exports);
35
42
  __exportStar(require("./RootResponse"), exports);
36
43
  __exportStar(require("./SignInRequest"), exports);
37
44
  __exportStar(require("./TenantResponse"), exports);
38
45
  __exportStar(require("./TenantUserInTenantResponse"), exports);
39
46
  __exportStar(require("./TenantUserRole"), exports);
47
+ __exportStar(require("./UpdateFolderRequest"), exports);
40
48
  __exportStar(require("./UpdateTenantRequest"), exports);
41
49
  __exportStar(require("./UpdateUserRequest"), exports);
42
50
  __exportStar(require("./UserResponse"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knowledge-stack/ksapi",
3
- "version": "1.1.0",
3
+ "version": "1.3.0",
4
4
  "description": "OpenAPI client for @knowledge-stack/ksapi",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {