@knowledge-stack/ksapi 1.62.1 → 1.63.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 +14 -0
- package/README.md +12 -3
- package/dist/apis/FeedbackApi.d.ts +170 -0
- package/dist/apis/FeedbackApi.js +176 -0
- package/dist/apis/TenantGroupsApi.d.ts +1 -37
- package/dist/apis/TenantGroupsApi.js +3 -75
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/FeedbackApi.d.ts +170 -0
- package/dist/esm/apis/FeedbackApi.js +172 -0
- package/dist/esm/apis/TenantGroupsApi.d.ts +1 -37
- package/dist/esm/apis/TenantGroupsApi.js +3 -75
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/FeedbackEventResponse.d.ts +106 -0
- package/dist/esm/models/FeedbackEventResponse.js +83 -0
- package/dist/esm/models/FeedbackRating.d.ts +25 -0
- package/dist/esm/models/FeedbackRating.js +43 -0
- package/dist/esm/models/FeedbackReason.d.ts +34 -0
- package/dist/esm/models/FeedbackReason.js +52 -0
- package/dist/esm/models/FeedbackTargetType.d.ts +28 -0
- package/dist/esm/models/FeedbackTargetType.js +46 -0
- package/dist/esm/models/PaginatedResponseFeedbackEventResponse.d.ts +66 -0
- package/dist/esm/models/PaginatedResponseFeedbackEventResponse.js +70 -0
- package/dist/esm/models/SubmitFeedbackRequest.d.ts +82 -0
- package/dist/esm/models/SubmitFeedbackRequest.js +65 -0
- package/dist/esm/models/index.d.ts +6 -0
- package/dist/esm/models/index.js +6 -0
- package/dist/models/FeedbackEventResponse.d.ts +106 -0
- package/dist/models/FeedbackEventResponse.js +91 -0
- package/dist/models/FeedbackRating.d.ts +25 -0
- package/dist/models/FeedbackRating.js +51 -0
- package/dist/models/FeedbackReason.d.ts +34 -0
- package/dist/models/FeedbackReason.js +60 -0
- package/dist/models/FeedbackTargetType.d.ts +28 -0
- package/dist/models/FeedbackTargetType.js +54 -0
- package/dist/models/PaginatedResponseFeedbackEventResponse.d.ts +66 -0
- package/dist/models/PaginatedResponseFeedbackEventResponse.js +78 -0
- package/dist/models/SubmitFeedbackRequest.d.ts +82 -0
- package/dist/models/SubmitFeedbackRequest.js +73 -0
- package/dist/models/index.d.ts +6 -0
- package/dist/models/index.js +6 -0
- package/docs/FeedbackApi.md +245 -0
- package/docs/FeedbackEventResponse.md +53 -0
- package/docs/FeedbackRating.md +32 -0
- package/docs/FeedbackReason.md +32 -0
- package/docs/FeedbackTargetType.md +32 -0
- package/docs/PaginatedResponseFeedbackEventResponse.md +40 -0
- package/docs/SubmitFeedbackRequest.md +45 -0
- package/docs/TenantGroupsApi.md +13 -49
- package/package.json +1 -1
- package/src/apis/FeedbackApi.ts +334 -0
- package/src/apis/TenantGroupsApi.ts +2 -170
- package/src/apis/index.ts +1 -0
- package/src/models/FeedbackEventResponse.ts +188 -0
- package/src/models/FeedbackRating.ts +53 -0
- package/src/models/FeedbackReason.ts +62 -0
- package/src/models/FeedbackTargetType.ts +56 -0
- package/src/models/PaginatedResponseFeedbackEventResponse.ts +130 -0
- package/src/models/SubmitFeedbackRequest.ts +152 -0
- package/src/models/index.ts +6 -0
|
@@ -0,0 +1,65 @@
|
|
|
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 { FeedbackTargetTypeFromJSON, FeedbackTargetTypeToJSON, } from './FeedbackTargetType';
|
|
15
|
+
import { FeedbackRatingFromJSON, FeedbackRatingToJSON, } from './FeedbackRating';
|
|
16
|
+
import { FeedbackReasonFromJSON, FeedbackReasonToJSON, } from './FeedbackReason';
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the SubmitFeedbackRequest interface.
|
|
19
|
+
*/
|
|
20
|
+
export function instanceOfSubmitFeedbackRequest(value) {
|
|
21
|
+
if (!('targetType' in value) || value['targetType'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('targetId' in value) || value['targetId'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
if (!('rating' in value) || value['rating'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
export function SubmitFeedbackRequestFromJSON(json) {
|
|
30
|
+
return SubmitFeedbackRequestFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
export function SubmitFeedbackRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'targetType': FeedbackTargetTypeFromJSON(json['target_type']),
|
|
38
|
+
'targetId': json['target_id'],
|
|
39
|
+
'rating': FeedbackRatingFromJSON(json['rating']),
|
|
40
|
+
'reason': json['reason'] == null ? undefined : FeedbackReasonFromJSON(json['reason']),
|
|
41
|
+
'comment': json['comment'] == null ? undefined : json['comment'],
|
|
42
|
+
'extraMetadata': json['extra_metadata'] == null ? undefined : json['extra_metadata'],
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
export function SubmitFeedbackRequestToJSON(json) {
|
|
46
|
+
return SubmitFeedbackRequestToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
export function SubmitFeedbackRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
49
|
+
if (value == null) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'target_type': FeedbackTargetTypeToJSON(value['targetType']),
|
|
54
|
+
'target_id': value['targetId'],
|
|
55
|
+
'rating': FeedbackRatingToJSON(value['rating']),
|
|
56
|
+
'reason': FeedbackReasonToJSON(value['reason']),
|
|
57
|
+
'comment': value['comment'],
|
|
58
|
+
'extra_metadata': value['extraMetadata'],
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
export const SubmitFeedbackRequestPropertyValidationAttributesMap = {
|
|
62
|
+
comment: {
|
|
63
|
+
maxLength: 4000,
|
|
64
|
+
},
|
|
65
|
+
};
|
|
@@ -48,6 +48,10 @@ export * from './EmailVerificationRequest';
|
|
|
48
48
|
export * from './EnrichedCitation';
|
|
49
49
|
export * from './EnrichedThreadMessageContent';
|
|
50
50
|
export * from './FeaturesResponse';
|
|
51
|
+
export * from './FeedbackEventResponse';
|
|
52
|
+
export * from './FeedbackRating';
|
|
53
|
+
export * from './FeedbackReason';
|
|
54
|
+
export * from './FeedbackTargetType';
|
|
51
55
|
export * from './FolderAction';
|
|
52
56
|
export * from './FolderActionResponse';
|
|
53
57
|
export * from './FolderResponse';
|
|
@@ -76,6 +80,7 @@ export * from './PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDi
|
|
|
76
80
|
export * from './PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator';
|
|
77
81
|
export * from './PaginatedResponseDocumentResponse';
|
|
78
82
|
export * from './PaginatedResponseDocumentVersionResponse';
|
|
83
|
+
export * from './PaginatedResponseFeedbackEventResponse';
|
|
79
84
|
export * from './PaginatedResponseFolderResponse';
|
|
80
85
|
export * from './PaginatedResponseGroupPermissionResponse';
|
|
81
86
|
export * from './PaginatedResponseGroupResponse';
|
|
@@ -119,6 +124,7 @@ export * from './SignInRequest';
|
|
|
119
124
|
export * from './StepInput';
|
|
120
125
|
export * from './StepKind';
|
|
121
126
|
export * from './StepOutput';
|
|
127
|
+
export * from './SubmitFeedbackRequest';
|
|
122
128
|
export * from './SubtreeChunkGroup';
|
|
123
129
|
export * from './SubtreeChunksResponse';
|
|
124
130
|
export * from './SupportedLanguage';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -50,6 +50,10 @@ export * from './EmailVerificationRequest';
|
|
|
50
50
|
export * from './EnrichedCitation';
|
|
51
51
|
export * from './EnrichedThreadMessageContent';
|
|
52
52
|
export * from './FeaturesResponse';
|
|
53
|
+
export * from './FeedbackEventResponse';
|
|
54
|
+
export * from './FeedbackRating';
|
|
55
|
+
export * from './FeedbackReason';
|
|
56
|
+
export * from './FeedbackTargetType';
|
|
53
57
|
export * from './FolderAction';
|
|
54
58
|
export * from './FolderActionResponse';
|
|
55
59
|
export * from './FolderResponse';
|
|
@@ -78,6 +82,7 @@ export * from './PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDi
|
|
|
78
82
|
export * from './PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator';
|
|
79
83
|
export * from './PaginatedResponseDocumentResponse';
|
|
80
84
|
export * from './PaginatedResponseDocumentVersionResponse';
|
|
85
|
+
export * from './PaginatedResponseFeedbackEventResponse';
|
|
81
86
|
export * from './PaginatedResponseFolderResponse';
|
|
82
87
|
export * from './PaginatedResponseGroupPermissionResponse';
|
|
83
88
|
export * from './PaginatedResponseGroupResponse';
|
|
@@ -121,6 +126,7 @@ export * from './SignInRequest';
|
|
|
121
126
|
export * from './StepInput';
|
|
122
127
|
export * from './StepKind';
|
|
123
128
|
export * from './StepOutput';
|
|
129
|
+
export * from './SubmitFeedbackRequest';
|
|
124
130
|
export * from './SubtreeChunkGroup';
|
|
125
131
|
export * from './SubtreeChunksResponse';
|
|
126
132
|
export * from './SupportedLanguage';
|
|
@@ -0,0 +1,106 @@
|
|
|
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 { FeedbackTargetType } from './FeedbackTargetType';
|
|
13
|
+
import type { FeedbackRating } from './FeedbackRating';
|
|
14
|
+
import type { FeedbackReason } from './FeedbackReason';
|
|
15
|
+
/**
|
|
16
|
+
* Response schema for a single FeedbackEvent.
|
|
17
|
+
* @export
|
|
18
|
+
* @interface FeedbackEventResponse
|
|
19
|
+
*/
|
|
20
|
+
export interface FeedbackEventResponse {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @type {string}
|
|
24
|
+
* @memberof FeedbackEventResponse
|
|
25
|
+
*/
|
|
26
|
+
id: string;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {FeedbackTargetType}
|
|
30
|
+
* @memberof FeedbackEventResponse
|
|
31
|
+
*/
|
|
32
|
+
targetType: FeedbackTargetType;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {string}
|
|
36
|
+
* @memberof FeedbackEventResponse
|
|
37
|
+
*/
|
|
38
|
+
targetId: string;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @type {string}
|
|
42
|
+
* @memberof FeedbackEventResponse
|
|
43
|
+
*/
|
|
44
|
+
userId: string;
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @type {FeedbackRating}
|
|
48
|
+
* @memberof FeedbackEventResponse
|
|
49
|
+
*/
|
|
50
|
+
rating: FeedbackRating;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @type {FeedbackReason}
|
|
54
|
+
* @memberof FeedbackEventResponse
|
|
55
|
+
*/
|
|
56
|
+
reason: FeedbackReason;
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
* @type {string}
|
|
60
|
+
* @memberof FeedbackEventResponse
|
|
61
|
+
*/
|
|
62
|
+
comment: string | null;
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
* @type {{ [key: string]: any; }}
|
|
66
|
+
* @memberof FeedbackEventResponse
|
|
67
|
+
*/
|
|
68
|
+
extraMetadata: {
|
|
69
|
+
[key: string]: any;
|
|
70
|
+
};
|
|
71
|
+
/**
|
|
72
|
+
*
|
|
73
|
+
* @type {Date}
|
|
74
|
+
* @memberof FeedbackEventResponse
|
|
75
|
+
*/
|
|
76
|
+
createdAt: Date;
|
|
77
|
+
/**
|
|
78
|
+
*
|
|
79
|
+
* @type {Date}
|
|
80
|
+
* @memberof FeedbackEventResponse
|
|
81
|
+
*/
|
|
82
|
+
updatedAt: Date;
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Check if a given object implements the FeedbackEventResponse interface.
|
|
86
|
+
*/
|
|
87
|
+
export declare function instanceOfFeedbackEventResponse(value: object): value is FeedbackEventResponse;
|
|
88
|
+
export declare function FeedbackEventResponseFromJSON(json: any): FeedbackEventResponse;
|
|
89
|
+
export declare function FeedbackEventResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): FeedbackEventResponse;
|
|
90
|
+
export declare function FeedbackEventResponseToJSON(json: any): FeedbackEventResponse;
|
|
91
|
+
export declare function FeedbackEventResponseToJSONTyped(value?: FeedbackEventResponse | null, ignoreDiscriminator?: boolean): any;
|
|
92
|
+
export declare const FeedbackEventResponsePropertyValidationAttributesMap: {
|
|
93
|
+
[property: string]: {
|
|
94
|
+
maxLength?: number;
|
|
95
|
+
minLength?: number;
|
|
96
|
+
pattern?: string;
|
|
97
|
+
maximum?: number;
|
|
98
|
+
exclusiveMaximum?: boolean;
|
|
99
|
+
minimum?: number;
|
|
100
|
+
exclusiveMinimum?: boolean;
|
|
101
|
+
multipleOf?: number;
|
|
102
|
+
maxItems?: number;
|
|
103
|
+
minItems?: number;
|
|
104
|
+
uniqueItems?: boolean;
|
|
105
|
+
};
|
|
106
|
+
};
|
|
@@ -0,0 +1,91 @@
|
|
|
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.FeedbackEventResponsePropertyValidationAttributesMap = void 0;
|
|
17
|
+
exports.instanceOfFeedbackEventResponse = instanceOfFeedbackEventResponse;
|
|
18
|
+
exports.FeedbackEventResponseFromJSON = FeedbackEventResponseFromJSON;
|
|
19
|
+
exports.FeedbackEventResponseFromJSONTyped = FeedbackEventResponseFromJSONTyped;
|
|
20
|
+
exports.FeedbackEventResponseToJSON = FeedbackEventResponseToJSON;
|
|
21
|
+
exports.FeedbackEventResponseToJSONTyped = FeedbackEventResponseToJSONTyped;
|
|
22
|
+
const FeedbackTargetType_1 = require("./FeedbackTargetType");
|
|
23
|
+
const FeedbackRating_1 = require("./FeedbackRating");
|
|
24
|
+
const FeedbackReason_1 = require("./FeedbackReason");
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the FeedbackEventResponse interface.
|
|
27
|
+
*/
|
|
28
|
+
function instanceOfFeedbackEventResponse(value) {
|
|
29
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('targetType' in value) || value['targetType'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('targetId' in value) || value['targetId'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('userId' in value) || value['userId'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('rating' in value) || value['rating'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('reason' in value) || value['reason'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('comment' in value) || value['comment'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('extraMetadata' in value) || value['extraMetadata'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
46
|
+
return false;
|
|
47
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
48
|
+
return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
function FeedbackEventResponseFromJSON(json) {
|
|
52
|
+
return FeedbackEventResponseFromJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
function FeedbackEventResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
55
|
+
if (json == null) {
|
|
56
|
+
return json;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'id': json['id'],
|
|
60
|
+
'targetType': (0, FeedbackTargetType_1.FeedbackTargetTypeFromJSON)(json['target_type']),
|
|
61
|
+
'targetId': json['target_id'],
|
|
62
|
+
'userId': json['user_id'],
|
|
63
|
+
'rating': (0, FeedbackRating_1.FeedbackRatingFromJSON)(json['rating']),
|
|
64
|
+
'reason': (0, FeedbackReason_1.FeedbackReasonFromJSON)(json['reason']),
|
|
65
|
+
'comment': json['comment'],
|
|
66
|
+
'extraMetadata': json['extra_metadata'],
|
|
67
|
+
'createdAt': (new Date(json['created_at'])),
|
|
68
|
+
'updatedAt': (new Date(json['updated_at'])),
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
function FeedbackEventResponseToJSON(json) {
|
|
72
|
+
return FeedbackEventResponseToJSONTyped(json, false);
|
|
73
|
+
}
|
|
74
|
+
function FeedbackEventResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
75
|
+
if (value == null) {
|
|
76
|
+
return value;
|
|
77
|
+
}
|
|
78
|
+
return {
|
|
79
|
+
'id': value['id'],
|
|
80
|
+
'target_type': (0, FeedbackTargetType_1.FeedbackTargetTypeToJSON)(value['targetType']),
|
|
81
|
+
'target_id': value['targetId'],
|
|
82
|
+
'user_id': value['userId'],
|
|
83
|
+
'rating': (0, FeedbackRating_1.FeedbackRatingToJSON)(value['rating']),
|
|
84
|
+
'reason': (0, FeedbackReason_1.FeedbackReasonToJSON)(value['reason']),
|
|
85
|
+
'comment': value['comment'],
|
|
86
|
+
'extra_metadata': value['extraMetadata'],
|
|
87
|
+
'created_at': value['createdAt'].toISOString(),
|
|
88
|
+
'updated_at': value['updatedAt'].toISOString(),
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
exports.FeedbackEventResponsePropertyValidationAttributesMap = {};
|
|
@@ -0,0 +1,25 @@
|
|
|
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
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const FeedbackRating: {
|
|
17
|
+
readonly Up: "UP";
|
|
18
|
+
readonly Down: "DOWN";
|
|
19
|
+
};
|
|
20
|
+
export type FeedbackRating = typeof FeedbackRating[keyof typeof FeedbackRating];
|
|
21
|
+
export declare function instanceOfFeedbackRating(value: any): boolean;
|
|
22
|
+
export declare function FeedbackRatingFromJSON(json: any): FeedbackRating;
|
|
23
|
+
export declare function FeedbackRatingFromJSONTyped(json: any, ignoreDiscriminator: boolean): FeedbackRating;
|
|
24
|
+
export declare function FeedbackRatingToJSON(value?: FeedbackRating | null): any;
|
|
25
|
+
export declare function FeedbackRatingToJSONTyped(value: any, ignoreDiscriminator: boolean): FeedbackRating;
|
|
@@ -0,0 +1,51 @@
|
|
|
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.FeedbackRating = void 0;
|
|
17
|
+
exports.instanceOfFeedbackRating = instanceOfFeedbackRating;
|
|
18
|
+
exports.FeedbackRatingFromJSON = FeedbackRatingFromJSON;
|
|
19
|
+
exports.FeedbackRatingFromJSONTyped = FeedbackRatingFromJSONTyped;
|
|
20
|
+
exports.FeedbackRatingToJSON = FeedbackRatingToJSON;
|
|
21
|
+
exports.FeedbackRatingToJSONTyped = FeedbackRatingToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.FeedbackRating = {
|
|
27
|
+
Up: 'UP',
|
|
28
|
+
Down: 'DOWN'
|
|
29
|
+
};
|
|
30
|
+
function instanceOfFeedbackRating(value) {
|
|
31
|
+
for (const key in exports.FeedbackRating) {
|
|
32
|
+
if (Object.prototype.hasOwnProperty.call(exports.FeedbackRating, key)) {
|
|
33
|
+
if (exports.FeedbackRating[key] === value) {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
return false;
|
|
39
|
+
}
|
|
40
|
+
function FeedbackRatingFromJSON(json) {
|
|
41
|
+
return FeedbackRatingFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function FeedbackRatingFromJSONTyped(json, ignoreDiscriminator) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
function FeedbackRatingToJSON(value) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
function FeedbackRatingToJSONTyped(value, ignoreDiscriminator) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
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
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const FeedbackReason: {
|
|
17
|
+
readonly Incorrect: "INCORRECT";
|
|
18
|
+
readonly MissingInfo: "MISSING_INFO";
|
|
19
|
+
readonly NotRelevant: "NOT_RELEVANT";
|
|
20
|
+
readonly BadCitations: "BAD_CITATIONS";
|
|
21
|
+
readonly Hallucination: "HALLUCINATION";
|
|
22
|
+
readonly OcrError: "OCR_ERROR";
|
|
23
|
+
readonly ParsingError: "PARSING_ERROR";
|
|
24
|
+
readonly StructureIssue: "STRUCTURE_ISSUE";
|
|
25
|
+
readonly TableError: "TABLE_ERROR";
|
|
26
|
+
readonly Formatting: "FORMATTING";
|
|
27
|
+
readonly Other: "OTHER";
|
|
28
|
+
};
|
|
29
|
+
export type FeedbackReason = typeof FeedbackReason[keyof typeof FeedbackReason];
|
|
30
|
+
export declare function instanceOfFeedbackReason(value: any): boolean;
|
|
31
|
+
export declare function FeedbackReasonFromJSON(json: any): FeedbackReason;
|
|
32
|
+
export declare function FeedbackReasonFromJSONTyped(json: any, ignoreDiscriminator: boolean): FeedbackReason;
|
|
33
|
+
export declare function FeedbackReasonToJSON(value?: FeedbackReason | null): any;
|
|
34
|
+
export declare function FeedbackReasonToJSONTyped(value: any, ignoreDiscriminator: boolean): FeedbackReason;
|
|
@@ -0,0 +1,60 @@
|
|
|
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.FeedbackReason = void 0;
|
|
17
|
+
exports.instanceOfFeedbackReason = instanceOfFeedbackReason;
|
|
18
|
+
exports.FeedbackReasonFromJSON = FeedbackReasonFromJSON;
|
|
19
|
+
exports.FeedbackReasonFromJSONTyped = FeedbackReasonFromJSONTyped;
|
|
20
|
+
exports.FeedbackReasonToJSON = FeedbackReasonToJSON;
|
|
21
|
+
exports.FeedbackReasonToJSONTyped = FeedbackReasonToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.FeedbackReason = {
|
|
27
|
+
Incorrect: 'INCORRECT',
|
|
28
|
+
MissingInfo: 'MISSING_INFO',
|
|
29
|
+
NotRelevant: 'NOT_RELEVANT',
|
|
30
|
+
BadCitations: 'BAD_CITATIONS',
|
|
31
|
+
Hallucination: 'HALLUCINATION',
|
|
32
|
+
OcrError: 'OCR_ERROR',
|
|
33
|
+
ParsingError: 'PARSING_ERROR',
|
|
34
|
+
StructureIssue: 'STRUCTURE_ISSUE',
|
|
35
|
+
TableError: 'TABLE_ERROR',
|
|
36
|
+
Formatting: 'FORMATTING',
|
|
37
|
+
Other: 'OTHER'
|
|
38
|
+
};
|
|
39
|
+
function instanceOfFeedbackReason(value) {
|
|
40
|
+
for (const key in exports.FeedbackReason) {
|
|
41
|
+
if (Object.prototype.hasOwnProperty.call(exports.FeedbackReason, key)) {
|
|
42
|
+
if (exports.FeedbackReason[key] === value) {
|
|
43
|
+
return true;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
return false;
|
|
48
|
+
}
|
|
49
|
+
function FeedbackReasonFromJSON(json) {
|
|
50
|
+
return FeedbackReasonFromJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function FeedbackReasonFromJSONTyped(json, ignoreDiscriminator) {
|
|
53
|
+
return json;
|
|
54
|
+
}
|
|
55
|
+
function FeedbackReasonToJSON(value) {
|
|
56
|
+
return value;
|
|
57
|
+
}
|
|
58
|
+
function FeedbackReasonToJSONTyped(value, ignoreDiscriminator) {
|
|
59
|
+
return value;
|
|
60
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
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
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const FeedbackTargetType: {
|
|
17
|
+
readonly Thread: "THREAD";
|
|
18
|
+
readonly Message: "MESSAGE";
|
|
19
|
+
readonly Document: "DOCUMENT";
|
|
20
|
+
readonly DocumentVersion: "DOCUMENT_VERSION";
|
|
21
|
+
readonly Chunk: "CHUNK";
|
|
22
|
+
};
|
|
23
|
+
export type FeedbackTargetType = typeof FeedbackTargetType[keyof typeof FeedbackTargetType];
|
|
24
|
+
export declare function instanceOfFeedbackTargetType(value: any): boolean;
|
|
25
|
+
export declare function FeedbackTargetTypeFromJSON(json: any): FeedbackTargetType;
|
|
26
|
+
export declare function FeedbackTargetTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): FeedbackTargetType;
|
|
27
|
+
export declare function FeedbackTargetTypeToJSON(value?: FeedbackTargetType | null): any;
|
|
28
|
+
export declare function FeedbackTargetTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): FeedbackTargetType;
|
|
@@ -0,0 +1,54 @@
|
|
|
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.FeedbackTargetType = void 0;
|
|
17
|
+
exports.instanceOfFeedbackTargetType = instanceOfFeedbackTargetType;
|
|
18
|
+
exports.FeedbackTargetTypeFromJSON = FeedbackTargetTypeFromJSON;
|
|
19
|
+
exports.FeedbackTargetTypeFromJSONTyped = FeedbackTargetTypeFromJSONTyped;
|
|
20
|
+
exports.FeedbackTargetTypeToJSON = FeedbackTargetTypeToJSON;
|
|
21
|
+
exports.FeedbackTargetTypeToJSONTyped = FeedbackTargetTypeToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.FeedbackTargetType = {
|
|
27
|
+
Thread: 'THREAD',
|
|
28
|
+
Message: 'MESSAGE',
|
|
29
|
+
Document: 'DOCUMENT',
|
|
30
|
+
DocumentVersion: 'DOCUMENT_VERSION',
|
|
31
|
+
Chunk: 'CHUNK'
|
|
32
|
+
};
|
|
33
|
+
function instanceOfFeedbackTargetType(value) {
|
|
34
|
+
for (const key in exports.FeedbackTargetType) {
|
|
35
|
+
if (Object.prototype.hasOwnProperty.call(exports.FeedbackTargetType, key)) {
|
|
36
|
+
if (exports.FeedbackTargetType[key] === value) {
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
return false;
|
|
42
|
+
}
|
|
43
|
+
function FeedbackTargetTypeFromJSON(json) {
|
|
44
|
+
return FeedbackTargetTypeFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function FeedbackTargetTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
47
|
+
return json;
|
|
48
|
+
}
|
|
49
|
+
function FeedbackTargetTypeToJSON(value) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
function FeedbackTargetTypeToJSONTyped(value, ignoreDiscriminator) {
|
|
53
|
+
return value;
|
|
54
|
+
}
|
|
@@ -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 { FeedbackEventResponse } from './FeedbackEventResponse';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface PaginatedResponseFeedbackEventResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface PaginatedResponseFeedbackEventResponse {
|
|
19
|
+
/**
|
|
20
|
+
* List of items
|
|
21
|
+
* @type {Array<FeedbackEventResponse>}
|
|
22
|
+
* @memberof PaginatedResponseFeedbackEventResponse
|
|
23
|
+
*/
|
|
24
|
+
items: Array<FeedbackEventResponse>;
|
|
25
|
+
/**
|
|
26
|
+
* Total number of items
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof PaginatedResponseFeedbackEventResponse
|
|
29
|
+
*/
|
|
30
|
+
total: number;
|
|
31
|
+
/**
|
|
32
|
+
* Number of items per page
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof PaginatedResponseFeedbackEventResponse
|
|
35
|
+
*/
|
|
36
|
+
limit: number;
|
|
37
|
+
/**
|
|
38
|
+
* Number of items to skip
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof PaginatedResponseFeedbackEventResponse
|
|
41
|
+
*/
|
|
42
|
+
offset: number;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the PaginatedResponseFeedbackEventResponse interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfPaginatedResponseFeedbackEventResponse(value: object): value is PaginatedResponseFeedbackEventResponse;
|
|
48
|
+
export declare function PaginatedResponseFeedbackEventResponseFromJSON(json: any): PaginatedResponseFeedbackEventResponse;
|
|
49
|
+
export declare function PaginatedResponseFeedbackEventResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedResponseFeedbackEventResponse;
|
|
50
|
+
export declare function PaginatedResponseFeedbackEventResponseToJSON(json: any): PaginatedResponseFeedbackEventResponse;
|
|
51
|
+
export declare function PaginatedResponseFeedbackEventResponseToJSONTyped(value?: PaginatedResponseFeedbackEventResponse | null, ignoreDiscriminator?: boolean): any;
|
|
52
|
+
export declare const PaginatedResponseFeedbackEventResponsePropertyValidationAttributesMap: {
|
|
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
|
+
};
|