@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,121 @@
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 { WorkflowRunnerType } from './WorkflowRunnerType';
13
+ import type { SelfHostedRunnerConfigResponse } from './SelfHostedRunnerConfigResponse';
14
+ /**
15
+ * Workflow definition response.
16
+ * @export
17
+ * @interface WorkflowDefinitionResponse
18
+ */
19
+ export interface WorkflowDefinitionResponse {
20
+ /**
21
+ *
22
+ * @type {string}
23
+ * @memberof WorkflowDefinitionResponse
24
+ */
25
+ id: string;
26
+ /**
27
+ *
28
+ * @type {string}
29
+ * @memberof WorkflowDefinitionResponse
30
+ */
31
+ name: string;
32
+ /**
33
+ *
34
+ * @type {string}
35
+ * @memberof WorkflowDefinitionResponse
36
+ */
37
+ description: string | null;
38
+ /**
39
+ *
40
+ * @type {WorkflowRunnerType}
41
+ * @memberof WorkflowDefinitionResponse
42
+ */
43
+ runnerType: WorkflowRunnerType;
44
+ /**
45
+ *
46
+ * @type {SelfHostedRunnerConfigResponse}
47
+ * @memberof WorkflowDefinitionResponse
48
+ */
49
+ runnerConfig: SelfHostedRunnerConfigResponse;
50
+ /**
51
+ *
52
+ * @type {number}
53
+ * @memberof WorkflowDefinitionResponse
54
+ */
55
+ maxRunDurationSeconds: number;
56
+ /**
57
+ *
58
+ * @type {Array<string>}
59
+ * @memberof WorkflowDefinitionResponse
60
+ */
61
+ sourcePathPartIds: Array<string>;
62
+ /**
63
+ *
64
+ * @type {Array<string>}
65
+ * @memberof WorkflowDefinitionResponse
66
+ */
67
+ instructionPathPartIds: Array<string>;
68
+ /**
69
+ *
70
+ * @type {Array<string>}
71
+ * @memberof WorkflowDefinitionResponse
72
+ */
73
+ outputPathPartIds: Array<string>;
74
+ /**
75
+ *
76
+ * @type {string}
77
+ * @memberof WorkflowDefinitionResponse
78
+ */
79
+ templatePathPartId: string | null;
80
+ /**
81
+ *
82
+ * @type {boolean}
83
+ * @memberof WorkflowDefinitionResponse
84
+ */
85
+ isActive: boolean;
86
+ /**
87
+ *
88
+ * @type {Date}
89
+ * @memberof WorkflowDefinitionResponse
90
+ */
91
+ createdAt: Date;
92
+ /**
93
+ *
94
+ * @type {Date}
95
+ * @memberof WorkflowDefinitionResponse
96
+ */
97
+ updatedAt: Date;
98
+ }
99
+ /**
100
+ * Check if a given object implements the WorkflowDefinitionResponse interface.
101
+ */
102
+ export declare function instanceOfWorkflowDefinitionResponse(value: object): value is WorkflowDefinitionResponse;
103
+ export declare function WorkflowDefinitionResponseFromJSON(json: any): WorkflowDefinitionResponse;
104
+ export declare function WorkflowDefinitionResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): WorkflowDefinitionResponse;
105
+ export declare function WorkflowDefinitionResponseToJSON(json: any): WorkflowDefinitionResponse;
106
+ export declare function WorkflowDefinitionResponseToJSONTyped(value?: WorkflowDefinitionResponse | null, ignoreDiscriminator?: boolean): any;
107
+ export declare const WorkflowDefinitionResponsePropertyValidationAttributesMap: {
108
+ [property: string]: {
109
+ maxLength?: number;
110
+ minLength?: number;
111
+ pattern?: string;
112
+ maximum?: number;
113
+ exclusiveMaximum?: boolean;
114
+ minimum?: number;
115
+ exclusiveMinimum?: boolean;
116
+ multipleOf?: number;
117
+ maxItems?: number;
118
+ minItems?: number;
119
+ uniqueItems?: boolean;
120
+ };
121
+ };
@@ -0,0 +1,102 @@
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.WorkflowDefinitionResponsePropertyValidationAttributesMap = void 0;
17
+ exports.instanceOfWorkflowDefinitionResponse = instanceOfWorkflowDefinitionResponse;
18
+ exports.WorkflowDefinitionResponseFromJSON = WorkflowDefinitionResponseFromJSON;
19
+ exports.WorkflowDefinitionResponseFromJSONTyped = WorkflowDefinitionResponseFromJSONTyped;
20
+ exports.WorkflowDefinitionResponseToJSON = WorkflowDefinitionResponseToJSON;
21
+ exports.WorkflowDefinitionResponseToJSONTyped = WorkflowDefinitionResponseToJSONTyped;
22
+ const WorkflowRunnerType_1 = require("./WorkflowRunnerType");
23
+ const SelfHostedRunnerConfigResponse_1 = require("./SelfHostedRunnerConfigResponse");
24
+ /**
25
+ * Check if a given object implements the WorkflowDefinitionResponse interface.
26
+ */
27
+ function instanceOfWorkflowDefinitionResponse(value) {
28
+ if (!('id' in value) || value['id'] === undefined)
29
+ return false;
30
+ if (!('name' in value) || value['name'] === undefined)
31
+ return false;
32
+ if (!('description' in value) || value['description'] === undefined)
33
+ return false;
34
+ if (!('runnerType' in value) || value['runnerType'] === undefined)
35
+ return false;
36
+ if (!('runnerConfig' in value) || value['runnerConfig'] === undefined)
37
+ return false;
38
+ if (!('maxRunDurationSeconds' in value) || value['maxRunDurationSeconds'] === undefined)
39
+ return false;
40
+ if (!('sourcePathPartIds' in value) || value['sourcePathPartIds'] === undefined)
41
+ return false;
42
+ if (!('instructionPathPartIds' in value) || value['instructionPathPartIds'] === undefined)
43
+ return false;
44
+ if (!('outputPathPartIds' in value) || value['outputPathPartIds'] === undefined)
45
+ return false;
46
+ if (!('templatePathPartId' in value) || value['templatePathPartId'] === undefined)
47
+ return false;
48
+ if (!('isActive' in value) || value['isActive'] === undefined)
49
+ return false;
50
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
51
+ return false;
52
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined)
53
+ return false;
54
+ return true;
55
+ }
56
+ function WorkflowDefinitionResponseFromJSON(json) {
57
+ return WorkflowDefinitionResponseFromJSONTyped(json, false);
58
+ }
59
+ function WorkflowDefinitionResponseFromJSONTyped(json, ignoreDiscriminator) {
60
+ if (json == null) {
61
+ return json;
62
+ }
63
+ return {
64
+ 'id': json['id'],
65
+ 'name': json['name'],
66
+ 'description': json['description'],
67
+ 'runnerType': (0, WorkflowRunnerType_1.WorkflowRunnerTypeFromJSON)(json['runner_type']),
68
+ 'runnerConfig': (0, SelfHostedRunnerConfigResponse_1.SelfHostedRunnerConfigResponseFromJSON)(json['runner_config']),
69
+ 'maxRunDurationSeconds': json['max_run_duration_seconds'],
70
+ 'sourcePathPartIds': json['source_path_part_ids'],
71
+ 'instructionPathPartIds': json['instruction_path_part_ids'],
72
+ 'outputPathPartIds': json['output_path_part_ids'],
73
+ 'templatePathPartId': json['template_path_part_id'],
74
+ 'isActive': json['is_active'],
75
+ 'createdAt': (new Date(json['created_at'])),
76
+ 'updatedAt': (new Date(json['updated_at'])),
77
+ };
78
+ }
79
+ function WorkflowDefinitionResponseToJSON(json) {
80
+ return WorkflowDefinitionResponseToJSONTyped(json, false);
81
+ }
82
+ function WorkflowDefinitionResponseToJSONTyped(value, ignoreDiscriminator = false) {
83
+ if (value == null) {
84
+ return value;
85
+ }
86
+ return {
87
+ 'id': value['id'],
88
+ 'name': value['name'],
89
+ 'description': value['description'],
90
+ 'runner_type': (0, WorkflowRunnerType_1.WorkflowRunnerTypeToJSON)(value['runnerType']),
91
+ 'runner_config': (0, SelfHostedRunnerConfigResponse_1.SelfHostedRunnerConfigResponseToJSON)(value['runnerConfig']),
92
+ 'max_run_duration_seconds': value['maxRunDurationSeconds'],
93
+ 'source_path_part_ids': value['sourcePathPartIds'],
94
+ 'instruction_path_part_ids': value['instructionPathPartIds'],
95
+ 'output_path_part_ids': value['outputPathPartIds'],
96
+ 'template_path_part_id': value['templatePathPartId'],
97
+ 'is_active': value['isActive'],
98
+ 'created_at': value['createdAt'].toISOString(),
99
+ 'updated_at': value['updatedAt'].toISOString(),
100
+ };
101
+ }
102
+ exports.WorkflowDefinitionResponsePropertyValidationAttributesMap = {};
@@ -0,0 +1,61 @@
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 body for the runner callback endpoint.
14
+ * @export
15
+ * @interface WorkflowRunCallbackRequest
16
+ */
17
+ export interface WorkflowRunCallbackRequest {
18
+ /**
19
+ *
20
+ * @type {WorkflowRunCallbackRequestStatusEnum}
21
+ * @memberof WorkflowRunCallbackRequest
22
+ */
23
+ status: WorkflowRunCallbackRequestStatusEnum;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof WorkflowRunCallbackRequest
28
+ */
29
+ error?: string | null;
30
+ }
31
+ /**
32
+ * @export
33
+ */
34
+ export declare const WorkflowRunCallbackRequestStatusEnum: {
35
+ readonly Completed: "COMPLETED";
36
+ readonly Failed: "FAILED";
37
+ };
38
+ export type WorkflowRunCallbackRequestStatusEnum = typeof WorkflowRunCallbackRequestStatusEnum[keyof typeof WorkflowRunCallbackRequestStatusEnum];
39
+ /**
40
+ * Check if a given object implements the WorkflowRunCallbackRequest interface.
41
+ */
42
+ export declare function instanceOfWorkflowRunCallbackRequest(value: object): value is WorkflowRunCallbackRequest;
43
+ export declare function WorkflowRunCallbackRequestFromJSON(json: any): WorkflowRunCallbackRequest;
44
+ export declare function WorkflowRunCallbackRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): WorkflowRunCallbackRequest;
45
+ export declare function WorkflowRunCallbackRequestToJSON(json: any): WorkflowRunCallbackRequest;
46
+ export declare function WorkflowRunCallbackRequestToJSONTyped(value?: WorkflowRunCallbackRequest | null, ignoreDiscriminator?: boolean): any;
47
+ export declare const WorkflowRunCallbackRequestPropertyValidationAttributesMap: {
48
+ [property: string]: {
49
+ maxLength?: number;
50
+ minLength?: number;
51
+ pattern?: string;
52
+ maximum?: number;
53
+ exclusiveMaximum?: boolean;
54
+ minimum?: number;
55
+ exclusiveMinimum?: boolean;
56
+ multipleOf?: number;
57
+ maxItems?: number;
58
+ minItems?: number;
59
+ uniqueItems?: boolean;
60
+ };
61
+ };
@@ -0,0 +1,65 @@
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.WorkflowRunCallbackRequestPropertyValidationAttributesMap = exports.WorkflowRunCallbackRequestStatusEnum = void 0;
17
+ exports.instanceOfWorkflowRunCallbackRequest = instanceOfWorkflowRunCallbackRequest;
18
+ exports.WorkflowRunCallbackRequestFromJSON = WorkflowRunCallbackRequestFromJSON;
19
+ exports.WorkflowRunCallbackRequestFromJSONTyped = WorkflowRunCallbackRequestFromJSONTyped;
20
+ exports.WorkflowRunCallbackRequestToJSON = WorkflowRunCallbackRequestToJSON;
21
+ exports.WorkflowRunCallbackRequestToJSONTyped = WorkflowRunCallbackRequestToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.WorkflowRunCallbackRequestStatusEnum = {
26
+ Completed: 'COMPLETED',
27
+ Failed: 'FAILED'
28
+ };
29
+ /**
30
+ * Check if a given object implements the WorkflowRunCallbackRequest interface.
31
+ */
32
+ function instanceOfWorkflowRunCallbackRequest(value) {
33
+ if (!('status' in value) || value['status'] === undefined)
34
+ return false;
35
+ return true;
36
+ }
37
+ function WorkflowRunCallbackRequestFromJSON(json) {
38
+ return WorkflowRunCallbackRequestFromJSONTyped(json, false);
39
+ }
40
+ function WorkflowRunCallbackRequestFromJSONTyped(json, ignoreDiscriminator) {
41
+ if (json == null) {
42
+ return json;
43
+ }
44
+ return {
45
+ 'status': json['status'],
46
+ 'error': json['error'] == null ? undefined : json['error'],
47
+ };
48
+ }
49
+ function WorkflowRunCallbackRequestToJSON(json) {
50
+ return WorkflowRunCallbackRequestToJSONTyped(json, false);
51
+ }
52
+ function WorkflowRunCallbackRequestToJSONTyped(value, ignoreDiscriminator = false) {
53
+ if (value == null) {
54
+ return value;
55
+ }
56
+ return {
57
+ 'status': value['status'],
58
+ 'error': value['error'],
59
+ };
60
+ }
61
+ exports.WorkflowRunCallbackRequestPropertyValidationAttributesMap = {
62
+ error: {
63
+ maxLength: 8192,
64
+ },
65
+ };
@@ -0,0 +1,110 @@
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 { WorkflowRunSnapshot } from './WorkflowRunSnapshot';
13
+ import type { WorkflowRunStatus } from './WorkflowRunStatus';
14
+ import type { WorkflowRunnerType } from './WorkflowRunnerType';
15
+ /**
16
+ * Workflow run response.
17
+ * @export
18
+ * @interface WorkflowRunResponse
19
+ */
20
+ export interface WorkflowRunResponse {
21
+ /**
22
+ *
23
+ * @type {string}
24
+ * @memberof WorkflowRunResponse
25
+ */
26
+ id: string;
27
+ /**
28
+ *
29
+ * @type {string}
30
+ * @memberof WorkflowRunResponse
31
+ */
32
+ workflowDefinitionId: string;
33
+ /**
34
+ *
35
+ * @type {string}
36
+ * @memberof WorkflowRunResponse
37
+ */
38
+ userId: string;
39
+ /**
40
+ *
41
+ * @type {WorkflowRunnerType}
42
+ * @memberof WorkflowRunResponse
43
+ */
44
+ runnerType: WorkflowRunnerType;
45
+ /**
46
+ *
47
+ * @type {WorkflowRunStatus}
48
+ * @memberof WorkflowRunResponse
49
+ */
50
+ status: WorkflowRunStatus;
51
+ /**
52
+ *
53
+ * @type {Date}
54
+ * @memberof WorkflowRunResponse
55
+ */
56
+ startedAt: Date;
57
+ /**
58
+ *
59
+ * @type {Date}
60
+ * @memberof WorkflowRunResponse
61
+ */
62
+ completedAt: Date | null;
63
+ /**
64
+ *
65
+ * @type {WorkflowRunSnapshot}
66
+ * @memberof WorkflowRunResponse
67
+ */
68
+ runSnapshot: WorkflowRunSnapshot;
69
+ /**
70
+ *
71
+ * @type {string}
72
+ * @memberof WorkflowRunResponse
73
+ */
74
+ error: string | null;
75
+ /**
76
+ *
77
+ * @type {Date}
78
+ * @memberof WorkflowRunResponse
79
+ */
80
+ createdAt: Date;
81
+ /**
82
+ *
83
+ * @type {Date}
84
+ * @memberof WorkflowRunResponse
85
+ */
86
+ updatedAt: Date;
87
+ }
88
+ /**
89
+ * Check if a given object implements the WorkflowRunResponse interface.
90
+ */
91
+ export declare function instanceOfWorkflowRunResponse(value: object): value is WorkflowRunResponse;
92
+ export declare function WorkflowRunResponseFromJSON(json: any): WorkflowRunResponse;
93
+ export declare function WorkflowRunResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): WorkflowRunResponse;
94
+ export declare function WorkflowRunResponseToJSON(json: any): WorkflowRunResponse;
95
+ export declare function WorkflowRunResponseToJSONTyped(value?: WorkflowRunResponse | null, ignoreDiscriminator?: boolean): any;
96
+ export declare const WorkflowRunResponsePropertyValidationAttributesMap: {
97
+ [property: string]: {
98
+ maxLength?: number;
99
+ minLength?: number;
100
+ pattern?: string;
101
+ maximum?: number;
102
+ exclusiveMaximum?: boolean;
103
+ minimum?: number;
104
+ exclusiveMinimum?: boolean;
105
+ multipleOf?: number;
106
+ maxItems?: number;
107
+ minItems?: number;
108
+ uniqueItems?: boolean;
109
+ };
110
+ };
@@ -0,0 +1,95 @@
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.WorkflowRunResponsePropertyValidationAttributesMap = void 0;
17
+ exports.instanceOfWorkflowRunResponse = instanceOfWorkflowRunResponse;
18
+ exports.WorkflowRunResponseFromJSON = WorkflowRunResponseFromJSON;
19
+ exports.WorkflowRunResponseFromJSONTyped = WorkflowRunResponseFromJSONTyped;
20
+ exports.WorkflowRunResponseToJSON = WorkflowRunResponseToJSON;
21
+ exports.WorkflowRunResponseToJSONTyped = WorkflowRunResponseToJSONTyped;
22
+ const WorkflowRunSnapshot_1 = require("./WorkflowRunSnapshot");
23
+ const WorkflowRunStatus_1 = require("./WorkflowRunStatus");
24
+ const WorkflowRunnerType_1 = require("./WorkflowRunnerType");
25
+ /**
26
+ * Check if a given object implements the WorkflowRunResponse interface.
27
+ */
28
+ function instanceOfWorkflowRunResponse(value) {
29
+ if (!('id' in value) || value['id'] === undefined)
30
+ return false;
31
+ if (!('workflowDefinitionId' in value) || value['workflowDefinitionId'] === undefined)
32
+ return false;
33
+ if (!('userId' in value) || value['userId'] === undefined)
34
+ return false;
35
+ if (!('runnerType' in value) || value['runnerType'] === undefined)
36
+ return false;
37
+ if (!('status' in value) || value['status'] === undefined)
38
+ return false;
39
+ if (!('startedAt' in value) || value['startedAt'] === undefined)
40
+ return false;
41
+ if (!('completedAt' in value) || value['completedAt'] === undefined)
42
+ return false;
43
+ if (!('runSnapshot' in value) || value['runSnapshot'] === undefined)
44
+ return false;
45
+ if (!('error' in value) || value['error'] === undefined)
46
+ return false;
47
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
48
+ return false;
49
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined)
50
+ return false;
51
+ return true;
52
+ }
53
+ function WorkflowRunResponseFromJSON(json) {
54
+ return WorkflowRunResponseFromJSONTyped(json, false);
55
+ }
56
+ function WorkflowRunResponseFromJSONTyped(json, ignoreDiscriminator) {
57
+ if (json == null) {
58
+ return json;
59
+ }
60
+ return {
61
+ 'id': json['id'],
62
+ 'workflowDefinitionId': json['workflow_definition_id'],
63
+ 'userId': json['user_id'],
64
+ 'runnerType': (0, WorkflowRunnerType_1.WorkflowRunnerTypeFromJSON)(json['runner_type']),
65
+ 'status': (0, WorkflowRunStatus_1.WorkflowRunStatusFromJSON)(json['status']),
66
+ 'startedAt': (new Date(json['started_at'])),
67
+ 'completedAt': (json['completed_at'] == null ? null : new Date(json['completed_at'])),
68
+ 'runSnapshot': (0, WorkflowRunSnapshot_1.WorkflowRunSnapshotFromJSON)(json['run_snapshot']),
69
+ 'error': json['error'],
70
+ 'createdAt': (new Date(json['created_at'])),
71
+ 'updatedAt': (new Date(json['updated_at'])),
72
+ };
73
+ }
74
+ function WorkflowRunResponseToJSON(json) {
75
+ return WorkflowRunResponseToJSONTyped(json, false);
76
+ }
77
+ function WorkflowRunResponseToJSONTyped(value, ignoreDiscriminator = false) {
78
+ if (value == null) {
79
+ return value;
80
+ }
81
+ return {
82
+ 'id': value['id'],
83
+ 'workflow_definition_id': value['workflowDefinitionId'],
84
+ 'user_id': value['userId'],
85
+ 'runner_type': (0, WorkflowRunnerType_1.WorkflowRunnerTypeToJSON)(value['runnerType']),
86
+ 'status': (0, WorkflowRunStatus_1.WorkflowRunStatusToJSON)(value['status']),
87
+ 'started_at': value['startedAt'].toISOString(),
88
+ 'completed_at': value['completedAt'] == null ? value['completedAt'] : value['completedAt'].toISOString(),
89
+ 'run_snapshot': (0, WorkflowRunSnapshot_1.WorkflowRunSnapshotToJSON)(value['runSnapshot']),
90
+ 'error': value['error'],
91
+ 'created_at': value['createdAt'].toISOString(),
92
+ 'updated_at': value['updatedAt'].toISOString(),
93
+ };
94
+ }
95
+ exports.WorkflowRunResponsePropertyValidationAttributesMap = {};
@@ -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 { ABCDPathSnapshot } from './ABCDPathSnapshot';
13
+ import type { WorkflowRunnerType } from './WorkflowRunnerType';
14
+ /**
15
+ * Frozen ABCD configuration captured at workflow trigger time.
16
+ * @export
17
+ * @interface WorkflowRunSnapshot
18
+ */
19
+ export interface WorkflowRunSnapshot {
20
+ /**
21
+ *
22
+ * @type {string}
23
+ * @memberof WorkflowRunSnapshot
24
+ */
25
+ workflowDefinitionId: string;
26
+ /**
27
+ *
28
+ * @type {string}
29
+ * @memberof WorkflowRunSnapshot
30
+ */
31
+ workflowName: string;
32
+ /**
33
+ *
34
+ * @type {WorkflowRunnerType}
35
+ * @memberof WorkflowRunSnapshot
36
+ */
37
+ runnerType: WorkflowRunnerType;
38
+ /**
39
+ *
40
+ * @type {string}
41
+ * @memberof WorkflowRunSnapshot
42
+ */
43
+ userId: string;
44
+ /**
45
+ *
46
+ * @type {number}
47
+ * @memberof WorkflowRunSnapshot
48
+ */
49
+ maxRunDurationSeconds: number;
50
+ /**
51
+ *
52
+ * @type {Array<ABCDPathSnapshot>}
53
+ * @memberof WorkflowRunSnapshot
54
+ */
55
+ sources: Array<ABCDPathSnapshot>;
56
+ /**
57
+ *
58
+ * @type {Array<ABCDPathSnapshot>}
59
+ * @memberof WorkflowRunSnapshot
60
+ */
61
+ instructions: Array<ABCDPathSnapshot>;
62
+ /**
63
+ *
64
+ * @type {Array<ABCDPathSnapshot>}
65
+ * @memberof WorkflowRunSnapshot
66
+ */
67
+ outputs: Array<ABCDPathSnapshot>;
68
+ /**
69
+ *
70
+ * @type {ABCDPathSnapshot}
71
+ * @memberof WorkflowRunSnapshot
72
+ */
73
+ template: ABCDPathSnapshot;
74
+ }
75
+ /**
76
+ * Check if a given object implements the WorkflowRunSnapshot interface.
77
+ */
78
+ export declare function instanceOfWorkflowRunSnapshot(value: object): value is WorkflowRunSnapshot;
79
+ export declare function WorkflowRunSnapshotFromJSON(json: any): WorkflowRunSnapshot;
80
+ export declare function WorkflowRunSnapshotFromJSONTyped(json: any, ignoreDiscriminator: boolean): WorkflowRunSnapshot;
81
+ export declare function WorkflowRunSnapshotToJSON(json: any): WorkflowRunSnapshot;
82
+ export declare function WorkflowRunSnapshotToJSONTyped(value?: WorkflowRunSnapshot | null, ignoreDiscriminator?: boolean): any;
83
+ export declare const WorkflowRunSnapshotPropertyValidationAttributesMap: {
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
+ };