@knowledge-stack/ksapi 1.62.2 → 1.64.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 (167) hide show
  1. package/.openapi-generator/FILES +48 -0
  2. package/README.md +36 -2
  3. package/dist/apis/FeedbackApi.d.ts +170 -0
  4. package/dist/apis/FeedbackApi.js +176 -0
  5. package/dist/apis/WorkflowDefinitionsApi.d.ts +328 -0
  6. package/dist/apis/WorkflowDefinitionsApi.js +345 -0
  7. package/dist/apis/WorkflowRunsApi.d.ts +146 -0
  8. package/dist/apis/WorkflowRunsApi.js +160 -0
  9. package/dist/apis/index.d.ts +3 -0
  10. package/dist/apis/index.js +3 -0
  11. package/dist/esm/apis/FeedbackApi.d.ts +170 -0
  12. package/dist/esm/apis/FeedbackApi.js +172 -0
  13. package/dist/esm/apis/WorkflowDefinitionsApi.d.ts +328 -0
  14. package/dist/esm/apis/WorkflowDefinitionsApi.js +341 -0
  15. package/dist/esm/apis/WorkflowRunsApi.d.ts +146 -0
  16. package/dist/esm/apis/WorkflowRunsApi.js +156 -0
  17. package/dist/esm/apis/index.d.ts +3 -0
  18. package/dist/esm/apis/index.js +3 -0
  19. package/dist/esm/models/ABCDPathSnapshot.d.ts +60 -0
  20. package/dist/esm/models/ABCDPathSnapshot.js +53 -0
  21. package/dist/esm/models/CreateWorkflowDefinitionRequest.d.ts +97 -0
  22. package/dist/esm/models/CreateWorkflowDefinitionRequest.js +95 -0
  23. package/dist/esm/models/FeedbackEventResponse.d.ts +106 -0
  24. package/dist/esm/models/FeedbackEventResponse.js +83 -0
  25. package/dist/esm/models/FeedbackRating.d.ts +25 -0
  26. package/dist/esm/models/FeedbackRating.js +43 -0
  27. package/dist/esm/models/FeedbackReason.d.ts +34 -0
  28. package/dist/esm/models/FeedbackReason.js +52 -0
  29. package/dist/esm/models/FeedbackTargetType.d.ts +28 -0
  30. package/dist/esm/models/FeedbackTargetType.js +46 -0
  31. package/dist/esm/models/InvokeWorkflowRequest.d.ts +47 -0
  32. package/dist/esm/models/InvokeWorkflowRequest.js +46 -0
  33. package/dist/esm/models/PaginatedResponseFeedbackEventResponse.d.ts +66 -0
  34. package/dist/esm/models/PaginatedResponseFeedbackEventResponse.js +70 -0
  35. package/dist/esm/models/PaginatedResponseWorkflowDefinitionResponse.d.ts +66 -0
  36. package/dist/esm/models/PaginatedResponseWorkflowDefinitionResponse.js +70 -0
  37. package/dist/esm/models/PaginatedResponseWorkflowRunResponse.d.ts +66 -0
  38. package/dist/esm/models/PaginatedResponseWorkflowRunResponse.js +70 -0
  39. package/dist/esm/models/PartType.d.ts +2 -0
  40. package/dist/esm/models/PartType.js +3 -1
  41. package/dist/esm/models/ReferenceType.d.ts +2 -0
  42. package/dist/esm/models/ReferenceType.js +2 -0
  43. package/dist/esm/models/SelfHostedRunnerConfig.d.ts +53 -0
  44. package/dist/esm/models/SelfHostedRunnerConfig.js +53 -0
  45. package/dist/esm/models/SelfHostedRunnerConfigResponse.d.ts +47 -0
  46. package/dist/esm/models/SelfHostedRunnerConfigResponse.js +49 -0
  47. package/dist/esm/models/SubmitFeedbackRequest.d.ts +82 -0
  48. package/dist/esm/models/SubmitFeedbackRequest.js +65 -0
  49. package/dist/esm/models/UpdateWorkflowDefinitionRequest.d.ts +103 -0
  50. package/dist/esm/models/UpdateWorkflowDefinitionRequest.js +97 -0
  51. package/dist/esm/models/WorkflowCallbackResponse.d.ts +47 -0
  52. package/dist/esm/models/WorkflowCallbackResponse.js +44 -0
  53. package/dist/esm/models/WorkflowDefinitionResponse.d.ts +121 -0
  54. package/dist/esm/models/WorkflowDefinitionResponse.js +94 -0
  55. package/dist/esm/models/WorkflowRunCallbackRequest.d.ts +61 -0
  56. package/dist/esm/models/WorkflowRunCallbackRequest.js +57 -0
  57. package/dist/esm/models/WorkflowRunResponse.d.ts +110 -0
  58. package/dist/esm/models/WorkflowRunResponse.js +87 -0
  59. package/dist/esm/models/WorkflowRunSnapshot.d.ts +97 -0
  60. package/dist/esm/models/WorkflowRunSnapshot.js +78 -0
  61. package/dist/esm/models/WorkflowRunStatus.d.ts +27 -0
  62. package/dist/esm/models/WorkflowRunStatus.js +45 -0
  63. package/dist/esm/models/WorkflowRunnerType.d.ts +24 -0
  64. package/dist/esm/models/WorkflowRunnerType.js +42 -0
  65. package/dist/esm/models/index.d.ts +21 -0
  66. package/dist/esm/models/index.js +21 -0
  67. package/dist/models/ABCDPathSnapshot.d.ts +60 -0
  68. package/dist/models/ABCDPathSnapshot.js +61 -0
  69. package/dist/models/CreateWorkflowDefinitionRequest.d.ts +97 -0
  70. package/dist/models/CreateWorkflowDefinitionRequest.js +103 -0
  71. package/dist/models/FeedbackEventResponse.d.ts +106 -0
  72. package/dist/models/FeedbackEventResponse.js +91 -0
  73. package/dist/models/FeedbackRating.d.ts +25 -0
  74. package/dist/models/FeedbackRating.js +51 -0
  75. package/dist/models/FeedbackReason.d.ts +34 -0
  76. package/dist/models/FeedbackReason.js +60 -0
  77. package/dist/models/FeedbackTargetType.d.ts +28 -0
  78. package/dist/models/FeedbackTargetType.js +54 -0
  79. package/dist/models/InvokeWorkflowRequest.d.ts +47 -0
  80. package/dist/models/InvokeWorkflowRequest.js +54 -0
  81. package/dist/models/PaginatedResponseFeedbackEventResponse.d.ts +66 -0
  82. package/dist/models/PaginatedResponseFeedbackEventResponse.js +78 -0
  83. package/dist/models/PaginatedResponseWorkflowDefinitionResponse.d.ts +66 -0
  84. package/dist/models/PaginatedResponseWorkflowDefinitionResponse.js +78 -0
  85. package/dist/models/PaginatedResponseWorkflowRunResponse.d.ts +66 -0
  86. package/dist/models/PaginatedResponseWorkflowRunResponse.js +78 -0
  87. package/dist/models/PartType.d.ts +2 -0
  88. package/dist/models/PartType.js +3 -1
  89. package/dist/models/ReferenceType.d.ts +2 -0
  90. package/dist/models/ReferenceType.js +2 -0
  91. package/dist/models/SelfHostedRunnerConfig.d.ts +53 -0
  92. package/dist/models/SelfHostedRunnerConfig.js +61 -0
  93. package/dist/models/SelfHostedRunnerConfigResponse.d.ts +47 -0
  94. package/dist/models/SelfHostedRunnerConfigResponse.js +57 -0
  95. package/dist/models/SubmitFeedbackRequest.d.ts +82 -0
  96. package/dist/models/SubmitFeedbackRequest.js +73 -0
  97. package/dist/models/UpdateWorkflowDefinitionRequest.d.ts +103 -0
  98. package/dist/models/UpdateWorkflowDefinitionRequest.js +105 -0
  99. package/dist/models/WorkflowCallbackResponse.d.ts +47 -0
  100. package/dist/models/WorkflowCallbackResponse.js +52 -0
  101. package/dist/models/WorkflowDefinitionResponse.d.ts +121 -0
  102. package/dist/models/WorkflowDefinitionResponse.js +102 -0
  103. package/dist/models/WorkflowRunCallbackRequest.d.ts +61 -0
  104. package/dist/models/WorkflowRunCallbackRequest.js +65 -0
  105. package/dist/models/WorkflowRunResponse.d.ts +110 -0
  106. package/dist/models/WorkflowRunResponse.js +95 -0
  107. package/dist/models/WorkflowRunSnapshot.d.ts +97 -0
  108. package/dist/models/WorkflowRunSnapshot.js +86 -0
  109. package/dist/models/WorkflowRunStatus.d.ts +27 -0
  110. package/dist/models/WorkflowRunStatus.js +53 -0
  111. package/dist/models/WorkflowRunnerType.d.ts +24 -0
  112. package/dist/models/WorkflowRunnerType.js +50 -0
  113. package/dist/models/index.d.ts +21 -0
  114. package/dist/models/index.js +21 -0
  115. package/docs/ABCDPathSnapshot.md +39 -0
  116. package/docs/CreateWorkflowDefinitionRequest.md +51 -0
  117. package/docs/FeedbackApi.md +245 -0
  118. package/docs/FeedbackEventResponse.md +53 -0
  119. package/docs/FeedbackRating.md +32 -0
  120. package/docs/FeedbackReason.md +32 -0
  121. package/docs/FeedbackTargetType.md +32 -0
  122. package/docs/InvokeWorkflowRequest.md +35 -0
  123. package/docs/PaginatedResponseFeedbackEventResponse.md +40 -0
  124. package/docs/PaginatedResponseWorkflowDefinitionResponse.md +40 -0
  125. package/docs/PaginatedResponseWorkflowRunResponse.md +40 -0
  126. package/docs/SelfHostedRunnerConfig.md +37 -0
  127. package/docs/SelfHostedRunnerConfigResponse.md +35 -0
  128. package/docs/SubmitFeedbackRequest.md +45 -0
  129. package/docs/UpdateWorkflowDefinitionRequest.md +53 -0
  130. package/docs/WorkflowCallbackResponse.md +35 -0
  131. package/docs/WorkflowDefinitionResponse.md +59 -0
  132. package/docs/WorkflowDefinitionsApi.md +534 -0
  133. package/docs/WorkflowRunCallbackRequest.md +37 -0
  134. package/docs/WorkflowRunResponse.md +55 -0
  135. package/docs/WorkflowRunSnapshot.md +51 -0
  136. package/docs/WorkflowRunStatus.md +33 -0
  137. package/docs/WorkflowRunnerType.md +33 -0
  138. package/docs/WorkflowRunsApi.md +224 -0
  139. package/package.json +1 -1
  140. package/src/apis/FeedbackApi.ts +334 -0
  141. package/src/apis/WorkflowDefinitionsApi.ts +678 -0
  142. package/src/apis/WorkflowRunsApi.ts +296 -0
  143. package/src/apis/index.ts +3 -0
  144. package/src/models/ABCDPathSnapshot.ts +111 -0
  145. package/src/models/CreateWorkflowDefinitionRequest.ts +192 -0
  146. package/src/models/FeedbackEventResponse.ts +188 -0
  147. package/src/models/FeedbackRating.ts +53 -0
  148. package/src/models/FeedbackReason.ts +62 -0
  149. package/src/models/FeedbackTargetType.ts +56 -0
  150. package/src/models/InvokeWorkflowRequest.ts +85 -0
  151. package/src/models/PaginatedResponseFeedbackEventResponse.ts +130 -0
  152. package/src/models/PaginatedResponseWorkflowDefinitionResponse.ts +130 -0
  153. package/src/models/PaginatedResponseWorkflowRunResponse.ts +130 -0
  154. package/src/models/PartType.ts +3 -1
  155. package/src/models/ReferenceType.ts +2 -0
  156. package/src/models/SelfHostedRunnerConfig.ts +96 -0
  157. package/src/models/SelfHostedRunnerConfigResponse.ts +87 -0
  158. package/src/models/SubmitFeedbackRequest.ts +152 -0
  159. package/src/models/UpdateWorkflowDefinitionRequest.ts +200 -0
  160. package/src/models/WorkflowCallbackResponse.ts +83 -0
  161. package/src/models/WorkflowDefinitionResponse.ts +208 -0
  162. package/src/models/WorkflowRunCallbackRequest.ts +105 -0
  163. package/src/models/WorkflowRunResponse.ts +197 -0
  164. package/src/models/WorkflowRunSnapshot.ts +172 -0
  165. package/src/models/WorkflowRunStatus.ts +55 -0
  166. package/src/models/WorkflowRunnerType.ts +52 -0
  167. package/src/models/index.ts +21 -0
@@ -0,0 +1,60 @@
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
+ * Snapshot of a single ABCD path reference at trigger time.
15
+ * @export
16
+ * @interface ABCDPathSnapshot
17
+ */
18
+ export interface ABCDPathSnapshot {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof ABCDPathSnapshot
23
+ */
24
+ pathPartId: string;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof ABCDPathSnapshot
29
+ */
30
+ materializedPath: string;
31
+ /**
32
+ *
33
+ * @type {PartType}
34
+ * @memberof ABCDPathSnapshot
35
+ */
36
+ partType: PartType;
37
+ }
38
+ /**
39
+ * Check if a given object implements the ABCDPathSnapshot interface.
40
+ */
41
+ export declare function instanceOfABCDPathSnapshot(value: object): value is ABCDPathSnapshot;
42
+ export declare function ABCDPathSnapshotFromJSON(json: any): ABCDPathSnapshot;
43
+ export declare function ABCDPathSnapshotFromJSONTyped(json: any, ignoreDiscriminator: boolean): ABCDPathSnapshot;
44
+ export declare function ABCDPathSnapshotToJSON(json: any): ABCDPathSnapshot;
45
+ export declare function ABCDPathSnapshotToJSONTyped(value?: ABCDPathSnapshot | null, ignoreDiscriminator?: boolean): any;
46
+ export declare const ABCDPathSnapshotPropertyValidationAttributesMap: {
47
+ [property: string]: {
48
+ maxLength?: number;
49
+ minLength?: number;
50
+ pattern?: string;
51
+ maximum?: number;
52
+ exclusiveMaximum?: boolean;
53
+ minimum?: number;
54
+ exclusiveMinimum?: boolean;
55
+ multipleOf?: number;
56
+ maxItems?: number;
57
+ minItems?: number;
58
+ uniqueItems?: boolean;
59
+ };
60
+ };
@@ -0,0 +1,61 @@
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.ABCDPathSnapshotPropertyValidationAttributesMap = void 0;
17
+ exports.instanceOfABCDPathSnapshot = instanceOfABCDPathSnapshot;
18
+ exports.ABCDPathSnapshotFromJSON = ABCDPathSnapshotFromJSON;
19
+ exports.ABCDPathSnapshotFromJSONTyped = ABCDPathSnapshotFromJSONTyped;
20
+ exports.ABCDPathSnapshotToJSON = ABCDPathSnapshotToJSON;
21
+ exports.ABCDPathSnapshotToJSONTyped = ABCDPathSnapshotToJSONTyped;
22
+ const PartType_1 = require("./PartType");
23
+ /**
24
+ * Check if a given object implements the ABCDPathSnapshot interface.
25
+ */
26
+ function instanceOfABCDPathSnapshot(value) {
27
+ if (!('pathPartId' in value) || value['pathPartId'] === undefined)
28
+ return false;
29
+ if (!('materializedPath' in value) || value['materializedPath'] === undefined)
30
+ return false;
31
+ if (!('partType' in value) || value['partType'] === undefined)
32
+ return false;
33
+ return true;
34
+ }
35
+ function ABCDPathSnapshotFromJSON(json) {
36
+ return ABCDPathSnapshotFromJSONTyped(json, false);
37
+ }
38
+ function ABCDPathSnapshotFromJSONTyped(json, ignoreDiscriminator) {
39
+ if (json == null) {
40
+ return json;
41
+ }
42
+ return {
43
+ 'pathPartId': json['path_part_id'],
44
+ 'materializedPath': json['materialized_path'],
45
+ 'partType': (0, PartType_1.PartTypeFromJSON)(json['part_type']),
46
+ };
47
+ }
48
+ function ABCDPathSnapshotToJSON(json) {
49
+ return ABCDPathSnapshotToJSONTyped(json, false);
50
+ }
51
+ function ABCDPathSnapshotToJSONTyped(value, ignoreDiscriminator = false) {
52
+ if (value == null) {
53
+ return value;
54
+ }
55
+ return {
56
+ 'path_part_id': value['pathPartId'],
57
+ 'materialized_path': value['materializedPath'],
58
+ 'part_type': (0, PartType_1.PartTypeToJSON)(value['partType']),
59
+ };
60
+ }
61
+ exports.ABCDPathSnapshotPropertyValidationAttributesMap = {};
@@ -0,0 +1,97 @@
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 { SelfHostedRunnerConfig } from './SelfHostedRunnerConfig';
13
+ import type { WorkflowRunnerType } from './WorkflowRunnerType';
14
+ /**
15
+ * Create a new workflow definition.
16
+ * @export
17
+ * @interface CreateWorkflowDefinitionRequest
18
+ */
19
+ export interface CreateWorkflowDefinitionRequest {
20
+ /**
21
+ *
22
+ * @type {string}
23
+ * @memberof CreateWorkflowDefinitionRequest
24
+ */
25
+ name: string;
26
+ /**
27
+ *
28
+ * @type {string}
29
+ * @memberof CreateWorkflowDefinitionRequest
30
+ */
31
+ description?: string | null;
32
+ /**
33
+ *
34
+ * @type {WorkflowRunnerType}
35
+ * @memberof CreateWorkflowDefinitionRequest
36
+ */
37
+ runnerType: WorkflowRunnerType;
38
+ /**
39
+ *
40
+ * @type {SelfHostedRunnerConfig}
41
+ * @memberof CreateWorkflowDefinitionRequest
42
+ */
43
+ runnerConfig?: SelfHostedRunnerConfig;
44
+ /**
45
+ *
46
+ * @type {number}
47
+ * @memberof CreateWorkflowDefinitionRequest
48
+ */
49
+ maxRunDurationSeconds?: number;
50
+ /**
51
+ *
52
+ * @type {Array<string>}
53
+ * @memberof CreateWorkflowDefinitionRequest
54
+ */
55
+ sourcePathPartIds: Array<string>;
56
+ /**
57
+ *
58
+ * @type {Array<string>}
59
+ * @memberof CreateWorkflowDefinitionRequest
60
+ */
61
+ instructionPathPartIds: Array<string>;
62
+ /**
63
+ *
64
+ * @type {Array<string>}
65
+ * @memberof CreateWorkflowDefinitionRequest
66
+ */
67
+ outputPathPartIds: Array<string>;
68
+ /**
69
+ *
70
+ * @type {string}
71
+ * @memberof CreateWorkflowDefinitionRequest
72
+ */
73
+ templatePathPartId?: string | null;
74
+ }
75
+ /**
76
+ * Check if a given object implements the CreateWorkflowDefinitionRequest interface.
77
+ */
78
+ export declare function instanceOfCreateWorkflowDefinitionRequest(value: object): value is CreateWorkflowDefinitionRequest;
79
+ export declare function CreateWorkflowDefinitionRequestFromJSON(json: any): CreateWorkflowDefinitionRequest;
80
+ export declare function CreateWorkflowDefinitionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateWorkflowDefinitionRequest;
81
+ export declare function CreateWorkflowDefinitionRequestToJSON(json: any): CreateWorkflowDefinitionRequest;
82
+ export declare function CreateWorkflowDefinitionRequestToJSONTyped(value?: CreateWorkflowDefinitionRequest | null, ignoreDiscriminator?: boolean): any;
83
+ export declare const CreateWorkflowDefinitionRequestPropertyValidationAttributesMap: {
84
+ [property: string]: {
85
+ maxLength?: number;
86
+ minLength?: number;
87
+ pattern?: string;
88
+ maximum?: number;
89
+ exclusiveMaximum?: boolean;
90
+ minimum?: number;
91
+ exclusiveMinimum?: boolean;
92
+ multipleOf?: number;
93
+ maxItems?: number;
94
+ minItems?: number;
95
+ uniqueItems?: boolean;
96
+ };
97
+ };
@@ -0,0 +1,103 @@
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.CreateWorkflowDefinitionRequestPropertyValidationAttributesMap = void 0;
17
+ exports.instanceOfCreateWorkflowDefinitionRequest = instanceOfCreateWorkflowDefinitionRequest;
18
+ exports.CreateWorkflowDefinitionRequestFromJSON = CreateWorkflowDefinitionRequestFromJSON;
19
+ exports.CreateWorkflowDefinitionRequestFromJSONTyped = CreateWorkflowDefinitionRequestFromJSONTyped;
20
+ exports.CreateWorkflowDefinitionRequestToJSON = CreateWorkflowDefinitionRequestToJSON;
21
+ exports.CreateWorkflowDefinitionRequestToJSONTyped = CreateWorkflowDefinitionRequestToJSONTyped;
22
+ const SelfHostedRunnerConfig_1 = require("./SelfHostedRunnerConfig");
23
+ const WorkflowRunnerType_1 = require("./WorkflowRunnerType");
24
+ /**
25
+ * Check if a given object implements the CreateWorkflowDefinitionRequest interface.
26
+ */
27
+ function instanceOfCreateWorkflowDefinitionRequest(value) {
28
+ if (!('name' in value) || value['name'] === undefined)
29
+ return false;
30
+ if (!('runnerType' in value) || value['runnerType'] === undefined)
31
+ return false;
32
+ if (!('sourcePathPartIds' in value) || value['sourcePathPartIds'] === undefined)
33
+ return false;
34
+ if (!('instructionPathPartIds' in value) || value['instructionPathPartIds'] === undefined)
35
+ return false;
36
+ if (!('outputPathPartIds' in value) || value['outputPathPartIds'] === undefined)
37
+ return false;
38
+ return true;
39
+ }
40
+ function CreateWorkflowDefinitionRequestFromJSON(json) {
41
+ return CreateWorkflowDefinitionRequestFromJSONTyped(json, false);
42
+ }
43
+ function CreateWorkflowDefinitionRequestFromJSONTyped(json, ignoreDiscriminator) {
44
+ if (json == null) {
45
+ return json;
46
+ }
47
+ return {
48
+ 'name': json['name'],
49
+ 'description': json['description'] == null ? undefined : json['description'],
50
+ 'runnerType': (0, WorkflowRunnerType_1.WorkflowRunnerTypeFromJSON)(json['runner_type']),
51
+ 'runnerConfig': json['runner_config'] == null ? undefined : (0, SelfHostedRunnerConfig_1.SelfHostedRunnerConfigFromJSON)(json['runner_config']),
52
+ 'maxRunDurationSeconds': json['max_run_duration_seconds'] == null ? undefined : json['max_run_duration_seconds'],
53
+ 'sourcePathPartIds': json['source_path_part_ids'],
54
+ 'instructionPathPartIds': json['instruction_path_part_ids'],
55
+ 'outputPathPartIds': json['output_path_part_ids'],
56
+ 'templatePathPartId': json['template_path_part_id'] == null ? undefined : json['template_path_part_id'],
57
+ };
58
+ }
59
+ function CreateWorkflowDefinitionRequestToJSON(json) {
60
+ return CreateWorkflowDefinitionRequestToJSONTyped(json, false);
61
+ }
62
+ function CreateWorkflowDefinitionRequestToJSONTyped(value, ignoreDiscriminator = false) {
63
+ if (value == null) {
64
+ return value;
65
+ }
66
+ return {
67
+ 'name': value['name'],
68
+ 'description': value['description'],
69
+ 'runner_type': (0, WorkflowRunnerType_1.WorkflowRunnerTypeToJSON)(value['runnerType']),
70
+ 'runner_config': (0, SelfHostedRunnerConfig_1.SelfHostedRunnerConfigToJSON)(value['runnerConfig']),
71
+ 'max_run_duration_seconds': value['maxRunDurationSeconds'],
72
+ 'source_path_part_ids': value['sourcePathPartIds'],
73
+ 'instruction_path_part_ids': value['instructionPathPartIds'],
74
+ 'output_path_part_ids': value['outputPathPartIds'],
75
+ 'template_path_part_id': value['templatePathPartId'],
76
+ };
77
+ }
78
+ exports.CreateWorkflowDefinitionRequestPropertyValidationAttributesMap = {
79
+ name: {
80
+ maxLength: 255,
81
+ },
82
+ maxRunDurationSeconds: {
83
+ maximum: 86400,
84
+ exclusiveMaximum: false,
85
+ minimum: 60,
86
+ exclusiveMinimum: false,
87
+ },
88
+ sourcePathPartIds: {
89
+ maxItems: 20,
90
+ minItems: 1,
91
+ uniqueItems: false,
92
+ },
93
+ instructionPathPartIds: {
94
+ maxItems: 20,
95
+ minItems: 1,
96
+ uniqueItems: false,
97
+ },
98
+ outputPathPartIds: {
99
+ maxItems: 20,
100
+ minItems: 1,
101
+ uniqueItems: false,
102
+ },
103
+ };
@@ -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
+ }