@knowledge-stack/ksapi 1.20.1 → 1.21.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.
- package/.openapi-generator/FILES +2 -1
- package/README.md +2 -2
- package/dist/apis/FoldersApi.d.ts +6 -4
- package/dist/apis/FoldersApi.js +5 -2
- package/dist/apis/PathPartsApi.d.ts +67 -5
- package/dist/apis/PathPartsApi.js +76 -2
- package/dist/apis/TagsApi.d.ts +1 -63
- package/dist/apis/TagsApi.js +0 -72
- package/dist/esm/apis/FoldersApi.d.ts +6 -4
- package/dist/esm/apis/FoldersApi.js +5 -2
- package/dist/esm/apis/PathPartsApi.d.ts +67 -5
- package/dist/esm/apis/PathPartsApi.js +77 -3
- package/dist/esm/apis/TagsApi.d.ts +1 -63
- package/dist/esm/apis/TagsApi.js +1 -73
- package/dist/esm/models/BulkTagRequest.d.ts +47 -0
- package/dist/esm/models/BulkTagRequest.js +49 -0
- package/dist/esm/models/FolderDocumentResponse.d.ts +7 -0
- package/dist/esm/models/FolderDocumentResponse.js +3 -0
- package/dist/esm/models/PathPartResponse.d.ts +7 -0
- package/dist/esm/models/PathPartResponse.js +3 -0
- package/dist/esm/models/PathPartTagsResponse.d.ts +48 -0
- package/dist/esm/models/PathPartTagsResponse.js +45 -0
- package/dist/esm/models/index.d.ts +2 -1
- package/dist/esm/models/index.js +2 -1
- package/dist/models/BulkTagRequest.d.ts +47 -0
- package/dist/models/BulkTagRequest.js +57 -0
- package/dist/models/FolderDocumentResponse.d.ts +7 -0
- package/dist/models/FolderDocumentResponse.js +3 -0
- package/dist/models/PathPartResponse.d.ts +7 -0
- package/dist/models/PathPartResponse.js +3 -0
- package/dist/models/PathPartTagsResponse.d.ts +48 -0
- package/dist/models/PathPartTagsResponse.js +53 -0
- package/dist/models/index.d.ts +2 -1
- package/dist/models/index.js +2 -1
- package/package.json +1 -1
- package/src/apis/FoldersApi.ts +10 -4
- package/src/apis/PathPartsApi.ts +156 -4
- package/src/apis/TagsApi.ts +0 -146
- package/src/models/BulkTagRequest.ts +87 -0
- package/src/models/FolderDocumentResponse.ts +15 -0
- package/src/models/PathPartResponse.ts +15 -0
- package/src/models/PathPartTagsResponse.ts +91 -0
- package/src/models/index.ts +2 -1
- package/dist/esm/models/TagPathPartRequest.d.ts +0 -47
- package/dist/esm/models/TagPathPartRequest.js +0 -44
- package/dist/models/TagPathPartRequest.d.ts +0 -47
- package/dist/models/TagPathPartRequest.js +0 -52
- package/src/models/TagPathPartRequest.ts +0 -83
|
@@ -0,0 +1,45 @@
|
|
|
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
|
+
import { TagResponseFromJSON, TagResponseToJSON, } from './TagResponse';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the PathPartTagsResponse interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfPathPartTagsResponse(value) {
|
|
19
|
+
if (!('tags' in value) || value['tags'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
return true;
|
|
22
|
+
}
|
|
23
|
+
export function PathPartTagsResponseFromJSON(json) {
|
|
24
|
+
return PathPartTagsResponseFromJSONTyped(json, false);
|
|
25
|
+
}
|
|
26
|
+
export function PathPartTagsResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
|
+
if (json == null) {
|
|
28
|
+
return json;
|
|
29
|
+
}
|
|
30
|
+
return {
|
|
31
|
+
'tags': (json['tags'].map(TagResponseFromJSON)),
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export function PathPartTagsResponseToJSON(json) {
|
|
35
|
+
return PathPartTagsResponseToJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function PathPartTagsResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
38
|
+
if (value == null) {
|
|
39
|
+
return value;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'tags': (value['tags'].map(TagResponseToJSON)),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
export const PathPartTagsResponsePropertyValidationAttributesMap = {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export * from './BulkTagRequest';
|
|
1
2
|
export * from './ChunkLineageResponse';
|
|
2
3
|
export * from './ChunkMetadataInput';
|
|
3
4
|
export * from './ChunkMetadataOutput';
|
|
@@ -60,6 +61,7 @@ export * from './PasswordResetRequest';
|
|
|
60
61
|
export * from './PasswordResetWithTokenRequest';
|
|
61
62
|
export * from './PathOrder';
|
|
62
63
|
export * from './PathPartResponse';
|
|
64
|
+
export * from './PathPartTagsResponse';
|
|
63
65
|
export * from './PermissionCapability';
|
|
64
66
|
export * from './PermissionResponse';
|
|
65
67
|
export * from './PipelineState';
|
|
@@ -70,7 +72,6 @@ export * from './RootResponse';
|
|
|
70
72
|
export * from './ScoredChunkResponse';
|
|
71
73
|
export * from './SectionResponse';
|
|
72
74
|
export * from './SignInRequest';
|
|
73
|
-
export * from './TagPathPartRequest';
|
|
74
75
|
export * from './TagResponse';
|
|
75
76
|
export * from './TenantResponse';
|
|
76
77
|
export * from './TenantUserInTenantResponse';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -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';
|
|
@@ -0,0 +1,47 @@
|
|
|
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 bulk add or remove tags from a path part.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface BulkTagRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface BulkTagRequest {
|
|
18
|
+
/**
|
|
19
|
+
* List of tag IDs to add/remove
|
|
20
|
+
* @type {Array<string>}
|
|
21
|
+
* @memberof BulkTagRequest
|
|
22
|
+
*/
|
|
23
|
+
tagIds: Array<string>;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the BulkTagRequest interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfBulkTagRequest(value: object): value is BulkTagRequest;
|
|
29
|
+
export declare function BulkTagRequestFromJSON(json: any): BulkTagRequest;
|
|
30
|
+
export declare function BulkTagRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): BulkTagRequest;
|
|
31
|
+
export declare function BulkTagRequestToJSON(json: any): BulkTagRequest;
|
|
32
|
+
export declare function BulkTagRequestToJSONTyped(value?: BulkTagRequest | null, ignoreDiscriminator?: boolean): any;
|
|
33
|
+
export declare const BulkTagRequestPropertyValidationAttributesMap: {
|
|
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
|
+
};
|
|
@@ -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.BulkTagRequestPropertyValidationAttributesMap = void 0;
|
|
17
|
+
exports.instanceOfBulkTagRequest = instanceOfBulkTagRequest;
|
|
18
|
+
exports.BulkTagRequestFromJSON = BulkTagRequestFromJSON;
|
|
19
|
+
exports.BulkTagRequestFromJSONTyped = BulkTagRequestFromJSONTyped;
|
|
20
|
+
exports.BulkTagRequestToJSON = BulkTagRequestToJSON;
|
|
21
|
+
exports.BulkTagRequestToJSONTyped = BulkTagRequestToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the BulkTagRequest interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfBulkTagRequest(value) {
|
|
26
|
+
if (!('tagIds' in value) || value['tagIds'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
function BulkTagRequestFromJSON(json) {
|
|
31
|
+
return BulkTagRequestFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
function BulkTagRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'tagIds': json['tag_ids'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function BulkTagRequestToJSON(json) {
|
|
42
|
+
return BulkTagRequestToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function BulkTagRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'tag_ids': value['tagIds'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
exports.BulkTagRequestPropertyValidationAttributesMap = {
|
|
53
|
+
tagIds: {
|
|
54
|
+
maxItems: 10,
|
|
55
|
+
uniqueItems: false,
|
|
56
|
+
},
|
|
57
|
+
};
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import type { DocumentOrigin } from './DocumentOrigin';
|
|
13
13
|
import type { PartType } from './PartType';
|
|
14
|
+
import type { TagResponse } from './TagResponse';
|
|
14
15
|
import type { DocumentType } from './DocumentType';
|
|
15
16
|
import type { DocumentVersionResponse } from './DocumentVersionResponse';
|
|
16
17
|
/**
|
|
@@ -70,6 +71,12 @@ export interface FolderDocumentResponse {
|
|
|
70
71
|
* @memberof FolderDocumentResponse
|
|
71
72
|
*/
|
|
72
73
|
systemManaged: boolean;
|
|
74
|
+
/**
|
|
75
|
+
* Tags attached to this path part
|
|
76
|
+
* @type {Array<TagResponse>}
|
|
77
|
+
* @memberof FolderDocumentResponse
|
|
78
|
+
*/
|
|
79
|
+
tags?: Array<TagResponse> | null;
|
|
73
80
|
/**
|
|
74
81
|
* Creation timestamp
|
|
75
82
|
* @type {Date}
|
|
@@ -21,6 +21,7 @@ exports.FolderDocumentResponseToJSON = FolderDocumentResponseToJSON;
|
|
|
21
21
|
exports.FolderDocumentResponseToJSONTyped = FolderDocumentResponseToJSONTyped;
|
|
22
22
|
const DocumentOrigin_1 = require("./DocumentOrigin");
|
|
23
23
|
const PartType_1 = require("./PartType");
|
|
24
|
+
const TagResponse_1 = require("./TagResponse");
|
|
24
25
|
const DocumentType_1 = require("./DocumentType");
|
|
25
26
|
const DocumentVersionResponse_1 = require("./DocumentVersionResponse");
|
|
26
27
|
/**
|
|
@@ -64,6 +65,7 @@ function FolderDocumentResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
64
65
|
'metadataObjId': json['metadata_obj_id'],
|
|
65
66
|
'materializedPath': json['materialized_path'],
|
|
66
67
|
'systemManaged': json['system_managed'],
|
|
68
|
+
'tags': json['tags'] == null ? undefined : (json['tags'].map(TagResponse_1.TagResponseFromJSON)),
|
|
67
69
|
'createdAt': (new Date(json['created_at'])),
|
|
68
70
|
'updatedAt': (new Date(json['updated_at'])),
|
|
69
71
|
'folderId': json['folder_id'] == null ? undefined : json['folder_id'],
|
|
@@ -90,6 +92,7 @@ function FolderDocumentResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
90
92
|
'metadata_obj_id': value['metadataObjId'],
|
|
91
93
|
'materialized_path': value['materializedPath'],
|
|
92
94
|
'system_managed': value['systemManaged'],
|
|
95
|
+
'tags': value['tags'] == null ? undefined : (value['tags'].map(TagResponse_1.TagResponseToJSON)),
|
|
93
96
|
'created_at': value['createdAt'].toISOString(),
|
|
94
97
|
'updated_at': value['updatedAt'].toISOString(),
|
|
95
98
|
'folder_id': value['folderId'],
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { PartType } from './PartType';
|
|
13
|
+
import type { TagResponse } from './TagResponse';
|
|
13
14
|
/**
|
|
14
15
|
* Generic path part response model.
|
|
15
16
|
* @export
|
|
@@ -58,6 +59,12 @@ export interface PathPartResponse {
|
|
|
58
59
|
* @memberof PathPartResponse
|
|
59
60
|
*/
|
|
60
61
|
systemManaged: boolean;
|
|
62
|
+
/**
|
|
63
|
+
* Tags attached to this path part
|
|
64
|
+
* @type {Array<TagResponse>}
|
|
65
|
+
* @memberof PathPartResponse
|
|
66
|
+
*/
|
|
67
|
+
tags?: Array<TagResponse> | null;
|
|
61
68
|
/**
|
|
62
69
|
* Creation timestamp
|
|
63
70
|
* @type {Date}
|
|
@@ -20,6 +20,7 @@ exports.PathPartResponseFromJSONTyped = PathPartResponseFromJSONTyped;
|
|
|
20
20
|
exports.PathPartResponseToJSON = PathPartResponseToJSON;
|
|
21
21
|
exports.PathPartResponseToJSONTyped = PathPartResponseToJSONTyped;
|
|
22
22
|
const PartType_1 = require("./PartType");
|
|
23
|
+
const TagResponse_1 = require("./TagResponse");
|
|
23
24
|
/**
|
|
24
25
|
* Check if a given object implements the PathPartResponse interface.
|
|
25
26
|
*/
|
|
@@ -59,6 +60,7 @@ function PathPartResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
59
60
|
'metadataObjId': json['metadata_obj_id'],
|
|
60
61
|
'materializedPath': json['materialized_path'],
|
|
61
62
|
'systemManaged': json['system_managed'],
|
|
63
|
+
'tags': json['tags'] == null ? undefined : (json['tags'].map(TagResponse_1.TagResponseFromJSON)),
|
|
62
64
|
'createdAt': (new Date(json['created_at'])),
|
|
63
65
|
'updatedAt': (new Date(json['updated_at'])),
|
|
64
66
|
};
|
|
@@ -78,6 +80,7 @@ function PathPartResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
78
80
|
'metadata_obj_id': value['metadataObjId'],
|
|
79
81
|
'materialized_path': value['materializedPath'],
|
|
80
82
|
'system_managed': value['systemManaged'],
|
|
83
|
+
'tags': value['tags'] == null ? undefined : (value['tags'].map(TagResponse_1.TagResponseToJSON)),
|
|
81
84
|
'created_at': value['createdAt'].toISOString(),
|
|
82
85
|
'updated_at': value['updatedAt'].toISOString(),
|
|
83
86
|
};
|
|
@@ -0,0 +1,48 @@
|
|
|
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 { TagResponse } from './TagResponse';
|
|
13
|
+
/**
|
|
14
|
+
* Response containing the current tags for a path part.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface PathPartTagsResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface PathPartTagsResponse {
|
|
19
|
+
/**
|
|
20
|
+
* Tags attached to the path part
|
|
21
|
+
* @type {Array<TagResponse>}
|
|
22
|
+
* @memberof PathPartTagsResponse
|
|
23
|
+
*/
|
|
24
|
+
tags: Array<TagResponse>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the PathPartTagsResponse interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfPathPartTagsResponse(value: object): value is PathPartTagsResponse;
|
|
30
|
+
export declare function PathPartTagsResponseFromJSON(json: any): PathPartTagsResponse;
|
|
31
|
+
export declare function PathPartTagsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PathPartTagsResponse;
|
|
32
|
+
export declare function PathPartTagsResponseToJSON(json: any): PathPartTagsResponse;
|
|
33
|
+
export declare function PathPartTagsResponseToJSONTyped(value?: PathPartTagsResponse | null, ignoreDiscriminator?: boolean): any;
|
|
34
|
+
export declare const PathPartTagsResponsePropertyValidationAttributesMap: {
|
|
35
|
+
[property: string]: {
|
|
36
|
+
maxLength?: number;
|
|
37
|
+
minLength?: number;
|
|
38
|
+
pattern?: string;
|
|
39
|
+
maximum?: number;
|
|
40
|
+
exclusiveMaximum?: boolean;
|
|
41
|
+
minimum?: number;
|
|
42
|
+
exclusiveMinimum?: boolean;
|
|
43
|
+
multipleOf?: number;
|
|
44
|
+
maxItems?: number;
|
|
45
|
+
minItems?: number;
|
|
46
|
+
uniqueItems?: boolean;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
@@ -0,0 +1,53 @@
|
|
|
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.PathPartTagsResponsePropertyValidationAttributesMap = void 0;
|
|
17
|
+
exports.instanceOfPathPartTagsResponse = instanceOfPathPartTagsResponse;
|
|
18
|
+
exports.PathPartTagsResponseFromJSON = PathPartTagsResponseFromJSON;
|
|
19
|
+
exports.PathPartTagsResponseFromJSONTyped = PathPartTagsResponseFromJSONTyped;
|
|
20
|
+
exports.PathPartTagsResponseToJSON = PathPartTagsResponseToJSON;
|
|
21
|
+
exports.PathPartTagsResponseToJSONTyped = PathPartTagsResponseToJSONTyped;
|
|
22
|
+
const TagResponse_1 = require("./TagResponse");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the PathPartTagsResponse interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfPathPartTagsResponse(value) {
|
|
27
|
+
if (!('tags' in value) || value['tags'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function PathPartTagsResponseFromJSON(json) {
|
|
32
|
+
return PathPartTagsResponseFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function PathPartTagsResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'tags': (json['tags'].map(TagResponse_1.TagResponseFromJSON)),
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
function PathPartTagsResponseToJSON(json) {
|
|
43
|
+
return PathPartTagsResponseToJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
function PathPartTagsResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'tags': (value['tags'].map(TagResponse_1.TagResponseToJSON)),
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
exports.PathPartTagsResponsePropertyValidationAttributesMap = {};
|
package/dist/models/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export * from './BulkTagRequest';
|
|
1
2
|
export * from './ChunkLineageResponse';
|
|
2
3
|
export * from './ChunkMetadataInput';
|
|
3
4
|
export * from './ChunkMetadataOutput';
|
|
@@ -60,6 +61,7 @@ export * from './PasswordResetRequest';
|
|
|
60
61
|
export * from './PasswordResetWithTokenRequest';
|
|
61
62
|
export * from './PathOrder';
|
|
62
63
|
export * from './PathPartResponse';
|
|
64
|
+
export * from './PathPartTagsResponse';
|
|
63
65
|
export * from './PermissionCapability';
|
|
64
66
|
export * from './PermissionResponse';
|
|
65
67
|
export * from './PipelineState';
|
|
@@ -70,7 +72,6 @@ export * from './RootResponse';
|
|
|
70
72
|
export * from './ScoredChunkResponse';
|
|
71
73
|
export * from './SectionResponse';
|
|
72
74
|
export * from './SignInRequest';
|
|
73
|
-
export * from './TagPathPartRequest';
|
|
74
75
|
export * from './TagResponse';
|
|
75
76
|
export * from './TenantResponse';
|
|
76
77
|
export * from './TenantUserInTenantResponse';
|
package/dist/models/index.js
CHANGED
|
@@ -16,6 +16,7 @@ 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("./BulkTagRequest"), exports);
|
|
19
20
|
__exportStar(require("./ChunkLineageResponse"), exports);
|
|
20
21
|
__exportStar(require("./ChunkMetadataInput"), exports);
|
|
21
22
|
__exportStar(require("./ChunkMetadataOutput"), exports);
|
|
@@ -78,6 +79,7 @@ __exportStar(require("./PasswordResetRequest"), exports);
|
|
|
78
79
|
__exportStar(require("./PasswordResetWithTokenRequest"), exports);
|
|
79
80
|
__exportStar(require("./PathOrder"), exports);
|
|
80
81
|
__exportStar(require("./PathPartResponse"), exports);
|
|
82
|
+
__exportStar(require("./PathPartTagsResponse"), exports);
|
|
81
83
|
__exportStar(require("./PermissionCapability"), exports);
|
|
82
84
|
__exportStar(require("./PermissionResponse"), exports);
|
|
83
85
|
__exportStar(require("./PipelineState"), exports);
|
|
@@ -88,7 +90,6 @@ __exportStar(require("./RootResponse"), exports);
|
|
|
88
90
|
__exportStar(require("./ScoredChunkResponse"), exports);
|
|
89
91
|
__exportStar(require("./SectionResponse"), exports);
|
|
90
92
|
__exportStar(require("./SignInRequest"), exports);
|
|
91
|
-
__exportStar(require("./TagPathPartRequest"), exports);
|
|
92
93
|
__exportStar(require("./TagResponse"), exports);
|
|
93
94
|
__exportStar(require("./TenantResponse"), exports);
|
|
94
95
|
__exportStar(require("./TenantUserInTenantResponse"), exports);
|
package/package.json
CHANGED
package/src/apis/FoldersApi.ts
CHANGED
|
@@ -59,6 +59,7 @@ export interface ListFolderContentsRequest {
|
|
|
59
59
|
folderId: string;
|
|
60
60
|
maxDepth?: number;
|
|
61
61
|
sortOrder?: PathOrder;
|
|
62
|
+
withTags?: boolean;
|
|
62
63
|
limit?: number;
|
|
63
64
|
offset?: number;
|
|
64
65
|
ksUat?: string | null;
|
|
@@ -137,11 +138,12 @@ export interface FoldersApiInterface {
|
|
|
137
138
|
getFolder(requestParameters: GetFolderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FolderResponse>;
|
|
138
139
|
|
|
139
140
|
/**
|
|
140
|
-
* List all contents (folders and documents) under a folder. Returns enriched responses with: - Folders: basic folder metadata - Documents: full document metadata including document_type, document_origin, active_version This is the preferred way to list folder contents when you need document metadata. For generic path traversal of folders only, use GET /path-parts.
|
|
141
|
+
* List all contents (folders and documents) under a folder. Returns enriched responses with: - Folders: basic folder metadata - Documents: full document metadata including document_type, document_origin, active_version When with_tags=true, each item includes a tags field with the full tag objects. This is the preferred way to list folder contents when you need document metadata. For generic path traversal of folders only, use GET /path-parts.
|
|
141
142
|
* @summary List Folder Contents Handler
|
|
142
143
|
* @param {string} folderId
|
|
143
144
|
* @param {number} [maxDepth] Maximum depth to traverse (1=direct children, default: 1)
|
|
144
145
|
* @param {PathOrder} [sortOrder] Sort order for results (default: LOGICAL)
|
|
146
|
+
* @param {boolean} [withTags] Include tag IDs for each item (default: false)
|
|
145
147
|
* @param {number} [limit] Number of items per page
|
|
146
148
|
* @param {number} [offset] Number of items to skip
|
|
147
149
|
* @param {string} [ksUat]
|
|
@@ -152,7 +154,7 @@ export interface FoldersApiInterface {
|
|
|
152
154
|
listFolderContentsRaw(requestParameters: ListFolderContentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedResponseFolderDocumentResponse>>;
|
|
153
155
|
|
|
154
156
|
/**
|
|
155
|
-
* List all contents (folders and documents) under a folder. Returns enriched responses with: - Folders: basic folder metadata - Documents: full document metadata including document_type, document_origin, active_version This is the preferred way to list folder contents when you need document metadata. For generic path traversal of folders only, use GET /path-parts.
|
|
157
|
+
* List all contents (folders and documents) under a folder. Returns enriched responses with: - Folders: basic folder metadata - Documents: full document metadata including document_type, document_origin, active_version When with_tags=true, each item includes a tags field with the full tag objects. This is the preferred way to list folder contents when you need document metadata. For generic path traversal of folders only, use GET /path-parts.
|
|
156
158
|
* List Folder Contents Handler
|
|
157
159
|
*/
|
|
158
160
|
listFolderContents(requestParameters: ListFolderContentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedResponseFolderDocumentResponse>;
|
|
@@ -321,7 +323,7 @@ export class FoldersApi extends runtime.BaseAPI implements FoldersApiInterface {
|
|
|
321
323
|
}
|
|
322
324
|
|
|
323
325
|
/**
|
|
324
|
-
* List all contents (folders and documents) under a folder. Returns enriched responses with: - Folders: basic folder metadata - Documents: full document metadata including document_type, document_origin, active_version This is the preferred way to list folder contents when you need document metadata. For generic path traversal of folders only, use GET /path-parts.
|
|
326
|
+
* List all contents (folders and documents) under a folder. Returns enriched responses with: - Folders: basic folder metadata - Documents: full document metadata including document_type, document_origin, active_version When with_tags=true, each item includes a tags field with the full tag objects. This is the preferred way to list folder contents when you need document metadata. For generic path traversal of folders only, use GET /path-parts.
|
|
325
327
|
* List Folder Contents Handler
|
|
326
328
|
*/
|
|
327
329
|
async listFolderContentsRaw(requestParameters: ListFolderContentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedResponseFolderDocumentResponse>> {
|
|
@@ -342,6 +344,10 @@ export class FoldersApi extends runtime.BaseAPI implements FoldersApiInterface {
|
|
|
342
344
|
queryParameters['sort_order'] = requestParameters['sortOrder'];
|
|
343
345
|
}
|
|
344
346
|
|
|
347
|
+
if (requestParameters['withTags'] != null) {
|
|
348
|
+
queryParameters['with_tags'] = requestParameters['withTags'];
|
|
349
|
+
}
|
|
350
|
+
|
|
345
351
|
if (requestParameters['limit'] != null) {
|
|
346
352
|
queryParameters['limit'] = requestParameters['limit'];
|
|
347
353
|
}
|
|
@@ -367,7 +373,7 @@ export class FoldersApi extends runtime.BaseAPI implements FoldersApiInterface {
|
|
|
367
373
|
}
|
|
368
374
|
|
|
369
375
|
/**
|
|
370
|
-
* List all contents (folders and documents) under a folder. Returns enriched responses with: - Folders: basic folder metadata - Documents: full document metadata including document_type, document_origin, active_version This is the preferred way to list folder contents when you need document metadata. For generic path traversal of folders only, use GET /path-parts.
|
|
376
|
+
* List all contents (folders and documents) under a folder. Returns enriched responses with: - Folders: basic folder metadata - Documents: full document metadata including document_type, document_origin, active_version When with_tags=true, each item includes a tags field with the full tag objects. This is the preferred way to list folder contents when you need document metadata. For generic path traversal of folders only, use GET /path-parts.
|
|
371
377
|
* List Folder Contents Handler
|
|
372
378
|
*/
|
|
373
379
|
async listFolderContents(requestParameters: ListFolderContentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedResponseFolderDocumentResponse> {
|