@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.
Files changed (61) hide show
  1. package/.openapi-generator/FILES +14 -0
  2. package/README.md +12 -3
  3. package/dist/apis/FeedbackApi.d.ts +170 -0
  4. package/dist/apis/FeedbackApi.js +176 -0
  5. package/dist/apis/TenantGroupsApi.d.ts +1 -37
  6. package/dist/apis/TenantGroupsApi.js +3 -75
  7. package/dist/apis/index.d.ts +1 -0
  8. package/dist/apis/index.js +1 -0
  9. package/dist/esm/apis/FeedbackApi.d.ts +170 -0
  10. package/dist/esm/apis/FeedbackApi.js +172 -0
  11. package/dist/esm/apis/TenantGroupsApi.d.ts +1 -37
  12. package/dist/esm/apis/TenantGroupsApi.js +3 -75
  13. package/dist/esm/apis/index.d.ts +1 -0
  14. package/dist/esm/apis/index.js +1 -0
  15. package/dist/esm/models/FeedbackEventResponse.d.ts +106 -0
  16. package/dist/esm/models/FeedbackEventResponse.js +83 -0
  17. package/dist/esm/models/FeedbackRating.d.ts +25 -0
  18. package/dist/esm/models/FeedbackRating.js +43 -0
  19. package/dist/esm/models/FeedbackReason.d.ts +34 -0
  20. package/dist/esm/models/FeedbackReason.js +52 -0
  21. package/dist/esm/models/FeedbackTargetType.d.ts +28 -0
  22. package/dist/esm/models/FeedbackTargetType.js +46 -0
  23. package/dist/esm/models/PaginatedResponseFeedbackEventResponse.d.ts +66 -0
  24. package/dist/esm/models/PaginatedResponseFeedbackEventResponse.js +70 -0
  25. package/dist/esm/models/SubmitFeedbackRequest.d.ts +82 -0
  26. package/dist/esm/models/SubmitFeedbackRequest.js +65 -0
  27. package/dist/esm/models/index.d.ts +6 -0
  28. package/dist/esm/models/index.js +6 -0
  29. package/dist/models/FeedbackEventResponse.d.ts +106 -0
  30. package/dist/models/FeedbackEventResponse.js +91 -0
  31. package/dist/models/FeedbackRating.d.ts +25 -0
  32. package/dist/models/FeedbackRating.js +51 -0
  33. package/dist/models/FeedbackReason.d.ts +34 -0
  34. package/dist/models/FeedbackReason.js +60 -0
  35. package/dist/models/FeedbackTargetType.d.ts +28 -0
  36. package/dist/models/FeedbackTargetType.js +54 -0
  37. package/dist/models/PaginatedResponseFeedbackEventResponse.d.ts +66 -0
  38. package/dist/models/PaginatedResponseFeedbackEventResponse.js +78 -0
  39. package/dist/models/SubmitFeedbackRequest.d.ts +82 -0
  40. package/dist/models/SubmitFeedbackRequest.js +73 -0
  41. package/dist/models/index.d.ts +6 -0
  42. package/dist/models/index.js +6 -0
  43. package/docs/FeedbackApi.md +245 -0
  44. package/docs/FeedbackEventResponse.md +53 -0
  45. package/docs/FeedbackRating.md +32 -0
  46. package/docs/FeedbackReason.md +32 -0
  47. package/docs/FeedbackTargetType.md +32 -0
  48. package/docs/PaginatedResponseFeedbackEventResponse.md +40 -0
  49. package/docs/SubmitFeedbackRequest.md +45 -0
  50. package/docs/TenantGroupsApi.md +13 -49
  51. package/package.json +1 -1
  52. package/src/apis/FeedbackApi.ts +334 -0
  53. package/src/apis/TenantGroupsApi.ts +2 -170
  54. package/src/apis/index.ts +1 -0
  55. package/src/models/FeedbackEventResponse.ts +188 -0
  56. package/src/models/FeedbackRating.ts +53 -0
  57. package/src/models/FeedbackReason.ts +62 -0
  58. package/src/models/FeedbackTargetType.ts +56 -0
  59. package/src/models/PaginatedResponseFeedbackEventResponse.ts +130 -0
  60. package/src/models/SubmitFeedbackRequest.ts +152 -0
  61. package/src/models/index.ts +6 -0
@@ -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,83 @@
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 FeedbackEventResponse interface.
19
+ */
20
+ export function instanceOfFeedbackEventResponse(value) {
21
+ if (!('id' in value) || value['id'] === undefined)
22
+ return false;
23
+ if (!('targetType' in value) || value['targetType'] === undefined)
24
+ return false;
25
+ if (!('targetId' in value) || value['targetId'] === undefined)
26
+ return false;
27
+ if (!('userId' in value) || value['userId'] === undefined)
28
+ return false;
29
+ if (!('rating' in value) || value['rating'] === undefined)
30
+ return false;
31
+ if (!('reason' in value) || value['reason'] === undefined)
32
+ return false;
33
+ if (!('comment' in value) || value['comment'] === undefined)
34
+ return false;
35
+ if (!('extraMetadata' in value) || value['extraMetadata'] === 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
+ export function FeedbackEventResponseFromJSON(json) {
44
+ return FeedbackEventResponseFromJSONTyped(json, false);
45
+ }
46
+ export function FeedbackEventResponseFromJSONTyped(json, ignoreDiscriminator) {
47
+ if (json == null) {
48
+ return json;
49
+ }
50
+ return {
51
+ 'id': json['id'],
52
+ 'targetType': FeedbackTargetTypeFromJSON(json['target_type']),
53
+ 'targetId': json['target_id'],
54
+ 'userId': json['user_id'],
55
+ 'rating': FeedbackRatingFromJSON(json['rating']),
56
+ 'reason': FeedbackReasonFromJSON(json['reason']),
57
+ 'comment': json['comment'],
58
+ 'extraMetadata': json['extra_metadata'],
59
+ 'createdAt': (new Date(json['created_at'])),
60
+ 'updatedAt': (new Date(json['updated_at'])),
61
+ };
62
+ }
63
+ export function FeedbackEventResponseToJSON(json) {
64
+ return FeedbackEventResponseToJSONTyped(json, false);
65
+ }
66
+ export function FeedbackEventResponseToJSONTyped(value, ignoreDiscriminator = false) {
67
+ if (value == null) {
68
+ return value;
69
+ }
70
+ return {
71
+ 'id': value['id'],
72
+ 'target_type': FeedbackTargetTypeToJSON(value['targetType']),
73
+ 'target_id': value['targetId'],
74
+ 'user_id': value['userId'],
75
+ 'rating': FeedbackRatingToJSON(value['rating']),
76
+ 'reason': FeedbackReasonToJSON(value['reason']),
77
+ 'comment': value['comment'],
78
+ 'extra_metadata': value['extraMetadata'],
79
+ 'created_at': value['createdAt'].toISOString(),
80
+ 'updated_at': value['updatedAt'].toISOString(),
81
+ };
82
+ }
83
+ export const 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,43 @@
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
+ *
16
+ * @export
17
+ */
18
+ export const FeedbackRating = {
19
+ Up: 'UP',
20
+ Down: 'DOWN'
21
+ };
22
+ export function instanceOfFeedbackRating(value) {
23
+ for (const key in FeedbackRating) {
24
+ if (Object.prototype.hasOwnProperty.call(FeedbackRating, key)) {
25
+ if (FeedbackRating[key] === value) {
26
+ return true;
27
+ }
28
+ }
29
+ }
30
+ return false;
31
+ }
32
+ export function FeedbackRatingFromJSON(json) {
33
+ return FeedbackRatingFromJSONTyped(json, false);
34
+ }
35
+ export function FeedbackRatingFromJSONTyped(json, ignoreDiscriminator) {
36
+ return json;
37
+ }
38
+ export function FeedbackRatingToJSON(value) {
39
+ return value;
40
+ }
41
+ export function FeedbackRatingToJSONTyped(value, ignoreDiscriminator) {
42
+ return value;
43
+ }
@@ -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,52 @@
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
+ *
16
+ * @export
17
+ */
18
+ export const FeedbackReason = {
19
+ Incorrect: 'INCORRECT',
20
+ MissingInfo: 'MISSING_INFO',
21
+ NotRelevant: 'NOT_RELEVANT',
22
+ BadCitations: 'BAD_CITATIONS',
23
+ Hallucination: 'HALLUCINATION',
24
+ OcrError: 'OCR_ERROR',
25
+ ParsingError: 'PARSING_ERROR',
26
+ StructureIssue: 'STRUCTURE_ISSUE',
27
+ TableError: 'TABLE_ERROR',
28
+ Formatting: 'FORMATTING',
29
+ Other: 'OTHER'
30
+ };
31
+ export function instanceOfFeedbackReason(value) {
32
+ for (const key in FeedbackReason) {
33
+ if (Object.prototype.hasOwnProperty.call(FeedbackReason, key)) {
34
+ if (FeedbackReason[key] === value) {
35
+ return true;
36
+ }
37
+ }
38
+ }
39
+ return false;
40
+ }
41
+ export function FeedbackReasonFromJSON(json) {
42
+ return FeedbackReasonFromJSONTyped(json, false);
43
+ }
44
+ export function FeedbackReasonFromJSONTyped(json, ignoreDiscriminator) {
45
+ return json;
46
+ }
47
+ export function FeedbackReasonToJSON(value) {
48
+ return value;
49
+ }
50
+ export function FeedbackReasonToJSONTyped(value, ignoreDiscriminator) {
51
+ return value;
52
+ }
@@ -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,46 @@
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
+ *
16
+ * @export
17
+ */
18
+ export const FeedbackTargetType = {
19
+ Thread: 'THREAD',
20
+ Message: 'MESSAGE',
21
+ Document: 'DOCUMENT',
22
+ DocumentVersion: 'DOCUMENT_VERSION',
23
+ Chunk: 'CHUNK'
24
+ };
25
+ export function instanceOfFeedbackTargetType(value) {
26
+ for (const key in FeedbackTargetType) {
27
+ if (Object.prototype.hasOwnProperty.call(FeedbackTargetType, key)) {
28
+ if (FeedbackTargetType[key] === value) {
29
+ return true;
30
+ }
31
+ }
32
+ }
33
+ return false;
34
+ }
35
+ export function FeedbackTargetTypeFromJSON(json) {
36
+ return FeedbackTargetTypeFromJSONTyped(json, false);
37
+ }
38
+ export function FeedbackTargetTypeFromJSONTyped(json, ignoreDiscriminator) {
39
+ return json;
40
+ }
41
+ export function FeedbackTargetTypeToJSON(value) {
42
+ return value;
43
+ }
44
+ export function FeedbackTargetTypeToJSONTyped(value, ignoreDiscriminator) {
45
+ return value;
46
+ }
@@ -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
+ };
@@ -0,0 +1,70 @@
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 { FeedbackEventResponseFromJSON, FeedbackEventResponseToJSON, } from './FeedbackEventResponse';
15
+ /**
16
+ * Check if a given object implements the PaginatedResponseFeedbackEventResponse interface.
17
+ */
18
+ export function instanceOfPaginatedResponseFeedbackEventResponse(value) {
19
+ if (!('items' in value) || value['items'] === undefined)
20
+ return false;
21
+ if (!('total' in value) || value['total'] === undefined)
22
+ return false;
23
+ if (!('limit' in value) || value['limit'] === undefined)
24
+ return false;
25
+ if (!('offset' in value) || value['offset'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ export function PaginatedResponseFeedbackEventResponseFromJSON(json) {
30
+ return PaginatedResponseFeedbackEventResponseFromJSONTyped(json, false);
31
+ }
32
+ export function PaginatedResponseFeedbackEventResponseFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'items': (json['items'].map(FeedbackEventResponseFromJSON)),
38
+ 'total': json['total'],
39
+ 'limit': json['limit'],
40
+ 'offset': json['offset'],
41
+ };
42
+ }
43
+ export function PaginatedResponseFeedbackEventResponseToJSON(json) {
44
+ return PaginatedResponseFeedbackEventResponseToJSONTyped(json, false);
45
+ }
46
+ export function PaginatedResponseFeedbackEventResponseToJSONTyped(value, ignoreDiscriminator = false) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'items': (value['items'].map(FeedbackEventResponseToJSON)),
52
+ 'total': value['total'],
53
+ 'limit': value['limit'],
54
+ 'offset': value['offset'],
55
+ };
56
+ }
57
+ export const PaginatedResponseFeedbackEventResponsePropertyValidationAttributesMap = {
58
+ total: {
59
+ minimum: 0,
60
+ exclusiveMinimum: false,
61
+ },
62
+ limit: {
63
+ minimum: 1,
64
+ exclusiveMinimum: false,
65
+ },
66
+ offset: {
67
+ minimum: 0,
68
+ exclusiveMinimum: false,
69
+ },
70
+ };
@@ -0,0 +1,82 @@
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
+ * Request to create or update feedback on a knowledge entity.
17
+ * @export
18
+ * @interface SubmitFeedbackRequest
19
+ */
20
+ export interface SubmitFeedbackRequest {
21
+ /**
22
+ *
23
+ * @type {FeedbackTargetType}
24
+ * @memberof SubmitFeedbackRequest
25
+ */
26
+ targetType: FeedbackTargetType;
27
+ /**
28
+ *
29
+ * @type {string}
30
+ * @memberof SubmitFeedbackRequest
31
+ */
32
+ targetId: string;
33
+ /**
34
+ *
35
+ * @type {FeedbackRating}
36
+ * @memberof SubmitFeedbackRequest
37
+ */
38
+ rating: FeedbackRating;
39
+ /**
40
+ *
41
+ * @type {FeedbackReason}
42
+ * @memberof SubmitFeedbackRequest
43
+ */
44
+ reason?: FeedbackReason;
45
+ /**
46
+ *
47
+ * @type {string}
48
+ * @memberof SubmitFeedbackRequest
49
+ */
50
+ comment?: string | null;
51
+ /**
52
+ *
53
+ * @type {{ [key: string]: any; }}
54
+ * @memberof SubmitFeedbackRequest
55
+ */
56
+ extraMetadata?: {
57
+ [key: string]: any;
58
+ } | null;
59
+ }
60
+ /**
61
+ * Check if a given object implements the SubmitFeedbackRequest interface.
62
+ */
63
+ export declare function instanceOfSubmitFeedbackRequest(value: object): value is SubmitFeedbackRequest;
64
+ export declare function SubmitFeedbackRequestFromJSON(json: any): SubmitFeedbackRequest;
65
+ export declare function SubmitFeedbackRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubmitFeedbackRequest;
66
+ export declare function SubmitFeedbackRequestToJSON(json: any): SubmitFeedbackRequest;
67
+ export declare function SubmitFeedbackRequestToJSONTyped(value?: SubmitFeedbackRequest | null, ignoreDiscriminator?: boolean): any;
68
+ export declare const SubmitFeedbackRequestPropertyValidationAttributesMap: {
69
+ [property: string]: {
70
+ maxLength?: number;
71
+ minLength?: number;
72
+ pattern?: string;
73
+ maximum?: number;
74
+ exclusiveMaximum?: boolean;
75
+ minimum?: number;
76
+ exclusiveMinimum?: boolean;
77
+ multipleOf?: number;
78
+ maxItems?: number;
79
+ minItems?: number;
80
+ uniqueItems?: boolean;
81
+ };
82
+ };