@knowledge-stack/ksapi 1.63.0 → 1.64.1

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 (131) hide show
  1. package/.openapi-generator/FILES +34 -0
  2. package/README.md +27 -2
  3. package/dist/apis/WorkflowDefinitionsApi.d.ts +328 -0
  4. package/dist/apis/WorkflowDefinitionsApi.js +345 -0
  5. package/dist/apis/WorkflowRunsApi.d.ts +146 -0
  6. package/dist/apis/WorkflowRunsApi.js +160 -0
  7. package/dist/apis/index.d.ts +2 -0
  8. package/dist/apis/index.js +2 -0
  9. package/dist/esm/apis/WorkflowDefinitionsApi.d.ts +328 -0
  10. package/dist/esm/apis/WorkflowDefinitionsApi.js +341 -0
  11. package/dist/esm/apis/WorkflowRunsApi.d.ts +146 -0
  12. package/dist/esm/apis/WorkflowRunsApi.js +156 -0
  13. package/dist/esm/apis/index.d.ts +2 -0
  14. package/dist/esm/apis/index.js +2 -0
  15. package/dist/esm/models/ABCDPathSnapshot.d.ts +60 -0
  16. package/dist/esm/models/ABCDPathSnapshot.js +53 -0
  17. package/dist/esm/models/CreateWorkflowDefinitionRequest.d.ts +97 -0
  18. package/dist/esm/models/CreateWorkflowDefinitionRequest.js +95 -0
  19. package/dist/esm/models/InvokeWorkflowRequest.d.ts +47 -0
  20. package/dist/esm/models/InvokeWorkflowRequest.js +46 -0
  21. package/dist/esm/models/PaginatedResponseWorkflowDefinitionResponse.d.ts +66 -0
  22. package/dist/esm/models/PaginatedResponseWorkflowDefinitionResponse.js +70 -0
  23. package/dist/esm/models/PaginatedResponseWorkflowRunResponse.d.ts +66 -0
  24. package/dist/esm/models/PaginatedResponseWorkflowRunResponse.js +70 -0
  25. package/dist/esm/models/PartType.d.ts +2 -0
  26. package/dist/esm/models/PartType.js +3 -1
  27. package/dist/esm/models/ReferenceType.d.ts +2 -0
  28. package/dist/esm/models/ReferenceType.js +2 -0
  29. package/dist/esm/models/SelfHostedRunnerConfig.d.ts +53 -0
  30. package/dist/esm/models/SelfHostedRunnerConfig.js +53 -0
  31. package/dist/esm/models/SelfHostedRunnerConfigResponse.d.ts +47 -0
  32. package/dist/esm/models/SelfHostedRunnerConfigResponse.js +49 -0
  33. package/dist/esm/models/StepInput.d.ts +1 -1
  34. package/dist/esm/models/StepOutput.d.ts +1 -1
  35. package/dist/esm/models/UpdateWorkflowDefinitionRequest.d.ts +103 -0
  36. package/dist/esm/models/UpdateWorkflowDefinitionRequest.js +97 -0
  37. package/dist/esm/models/WorkflowCallbackResponse.d.ts +47 -0
  38. package/dist/esm/models/WorkflowCallbackResponse.js +44 -0
  39. package/dist/esm/models/WorkflowDefinitionResponse.d.ts +121 -0
  40. package/dist/esm/models/WorkflowDefinitionResponse.js +94 -0
  41. package/dist/esm/models/WorkflowRunCallbackRequest.d.ts +61 -0
  42. package/dist/esm/models/WorkflowRunCallbackRequest.js +57 -0
  43. package/dist/esm/models/WorkflowRunResponse.d.ts +110 -0
  44. package/dist/esm/models/WorkflowRunResponse.js +87 -0
  45. package/dist/esm/models/WorkflowRunSnapshot.d.ts +97 -0
  46. package/dist/esm/models/WorkflowRunSnapshot.js +78 -0
  47. package/dist/esm/models/WorkflowRunStatus.d.ts +27 -0
  48. package/dist/esm/models/WorkflowRunStatus.js +45 -0
  49. package/dist/esm/models/WorkflowRunnerType.d.ts +24 -0
  50. package/dist/esm/models/WorkflowRunnerType.js +42 -0
  51. package/dist/esm/models/index.d.ts +15 -0
  52. package/dist/esm/models/index.js +15 -0
  53. package/dist/models/ABCDPathSnapshot.d.ts +60 -0
  54. package/dist/models/ABCDPathSnapshot.js +61 -0
  55. package/dist/models/CreateWorkflowDefinitionRequest.d.ts +97 -0
  56. package/dist/models/CreateWorkflowDefinitionRequest.js +103 -0
  57. package/dist/models/InvokeWorkflowRequest.d.ts +47 -0
  58. package/dist/models/InvokeWorkflowRequest.js +54 -0
  59. package/dist/models/PaginatedResponseWorkflowDefinitionResponse.d.ts +66 -0
  60. package/dist/models/PaginatedResponseWorkflowDefinitionResponse.js +78 -0
  61. package/dist/models/PaginatedResponseWorkflowRunResponse.d.ts +66 -0
  62. package/dist/models/PaginatedResponseWorkflowRunResponse.js +78 -0
  63. package/dist/models/PartType.d.ts +2 -0
  64. package/dist/models/PartType.js +3 -1
  65. package/dist/models/ReferenceType.d.ts +2 -0
  66. package/dist/models/ReferenceType.js +2 -0
  67. package/dist/models/SelfHostedRunnerConfig.d.ts +53 -0
  68. package/dist/models/SelfHostedRunnerConfig.js +61 -0
  69. package/dist/models/SelfHostedRunnerConfigResponse.d.ts +47 -0
  70. package/dist/models/SelfHostedRunnerConfigResponse.js +57 -0
  71. package/dist/models/StepInput.d.ts +1 -1
  72. package/dist/models/StepOutput.d.ts +1 -1
  73. package/dist/models/UpdateWorkflowDefinitionRequest.d.ts +103 -0
  74. package/dist/models/UpdateWorkflowDefinitionRequest.js +105 -0
  75. package/dist/models/WorkflowCallbackResponse.d.ts +47 -0
  76. package/dist/models/WorkflowCallbackResponse.js +52 -0
  77. package/dist/models/WorkflowDefinitionResponse.d.ts +121 -0
  78. package/dist/models/WorkflowDefinitionResponse.js +102 -0
  79. package/dist/models/WorkflowRunCallbackRequest.d.ts +61 -0
  80. package/dist/models/WorkflowRunCallbackRequest.js +65 -0
  81. package/dist/models/WorkflowRunResponse.d.ts +110 -0
  82. package/dist/models/WorkflowRunResponse.js +95 -0
  83. package/dist/models/WorkflowRunSnapshot.d.ts +97 -0
  84. package/dist/models/WorkflowRunSnapshot.js +86 -0
  85. package/dist/models/WorkflowRunStatus.d.ts +27 -0
  86. package/dist/models/WorkflowRunStatus.js +53 -0
  87. package/dist/models/WorkflowRunnerType.d.ts +24 -0
  88. package/dist/models/WorkflowRunnerType.js +50 -0
  89. package/dist/models/index.d.ts +15 -0
  90. package/dist/models/index.js +15 -0
  91. package/docs/ABCDPathSnapshot.md +39 -0
  92. package/docs/CreateWorkflowDefinitionRequest.md +51 -0
  93. package/docs/InvokeWorkflowRequest.md +35 -0
  94. package/docs/PaginatedResponseWorkflowDefinitionResponse.md +40 -0
  95. package/docs/PaginatedResponseWorkflowRunResponse.md +40 -0
  96. package/docs/SelfHostedRunnerConfig.md +37 -0
  97. package/docs/SelfHostedRunnerConfigResponse.md +35 -0
  98. package/docs/UpdateWorkflowDefinitionRequest.md +53 -0
  99. package/docs/WorkflowCallbackResponse.md +35 -0
  100. package/docs/WorkflowDefinitionResponse.md +59 -0
  101. package/docs/WorkflowDefinitionsApi.md +534 -0
  102. package/docs/WorkflowRunCallbackRequest.md +37 -0
  103. package/docs/WorkflowRunResponse.md +55 -0
  104. package/docs/WorkflowRunSnapshot.md +51 -0
  105. package/docs/WorkflowRunStatus.md +33 -0
  106. package/docs/WorkflowRunnerType.md +33 -0
  107. package/docs/WorkflowRunsApi.md +224 -0
  108. package/package.json +1 -1
  109. package/src/apis/WorkflowDefinitionsApi.ts +678 -0
  110. package/src/apis/WorkflowRunsApi.ts +296 -0
  111. package/src/apis/index.ts +2 -0
  112. package/src/models/ABCDPathSnapshot.ts +111 -0
  113. package/src/models/CreateWorkflowDefinitionRequest.ts +192 -0
  114. package/src/models/InvokeWorkflowRequest.ts +85 -0
  115. package/src/models/PaginatedResponseWorkflowDefinitionResponse.ts +130 -0
  116. package/src/models/PaginatedResponseWorkflowRunResponse.ts +130 -0
  117. package/src/models/PartType.ts +3 -1
  118. package/src/models/ReferenceType.ts +2 -0
  119. package/src/models/SelfHostedRunnerConfig.ts +96 -0
  120. package/src/models/SelfHostedRunnerConfigResponse.ts +87 -0
  121. package/src/models/StepInput.ts +1 -1
  122. package/src/models/StepOutput.ts +1 -1
  123. package/src/models/UpdateWorkflowDefinitionRequest.ts +200 -0
  124. package/src/models/WorkflowCallbackResponse.ts +83 -0
  125. package/src/models/WorkflowDefinitionResponse.ts +208 -0
  126. package/src/models/WorkflowRunCallbackRequest.ts +105 -0
  127. package/src/models/WorkflowRunResponse.ts +197 -0
  128. package/src/models/WorkflowRunSnapshot.ts +172 -0
  129. package/src/models/WorkflowRunStatus.ts +55 -0
  130. package/src/models/WorkflowRunnerType.ts +52 -0
  131. package/src/models/index.ts +15 -0
@@ -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,87 @@
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 { WorkflowRunSnapshotFromJSON, WorkflowRunSnapshotToJSON, } from './WorkflowRunSnapshot';
15
+ import { WorkflowRunStatusFromJSON, WorkflowRunStatusToJSON, } from './WorkflowRunStatus';
16
+ import { WorkflowRunnerTypeFromJSON, WorkflowRunnerTypeToJSON, } from './WorkflowRunnerType';
17
+ /**
18
+ * Check if a given object implements the WorkflowRunResponse interface.
19
+ */
20
+ export function instanceOfWorkflowRunResponse(value) {
21
+ if (!('id' in value) || value['id'] === undefined)
22
+ return false;
23
+ if (!('workflowDefinitionId' in value) || value['workflowDefinitionId'] === undefined)
24
+ return false;
25
+ if (!('userId' in value) || value['userId'] === undefined)
26
+ return false;
27
+ if (!('runnerType' in value) || value['runnerType'] === undefined)
28
+ return false;
29
+ if (!('status' in value) || value['status'] === undefined)
30
+ return false;
31
+ if (!('startedAt' in value) || value['startedAt'] === undefined)
32
+ return false;
33
+ if (!('completedAt' in value) || value['completedAt'] === undefined)
34
+ return false;
35
+ if (!('runSnapshot' in value) || value['runSnapshot'] === undefined)
36
+ return false;
37
+ if (!('error' in value) || value['error'] === undefined)
38
+ return false;
39
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
40
+ return false;
41
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined)
42
+ return false;
43
+ return true;
44
+ }
45
+ export function WorkflowRunResponseFromJSON(json) {
46
+ return WorkflowRunResponseFromJSONTyped(json, false);
47
+ }
48
+ export function WorkflowRunResponseFromJSONTyped(json, ignoreDiscriminator) {
49
+ if (json == null) {
50
+ return json;
51
+ }
52
+ return {
53
+ 'id': json['id'],
54
+ 'workflowDefinitionId': json['workflow_definition_id'],
55
+ 'userId': json['user_id'],
56
+ 'runnerType': WorkflowRunnerTypeFromJSON(json['runner_type']),
57
+ 'status': WorkflowRunStatusFromJSON(json['status']),
58
+ 'startedAt': (new Date(json['started_at'])),
59
+ 'completedAt': (json['completed_at'] == null ? null : new Date(json['completed_at'])),
60
+ 'runSnapshot': WorkflowRunSnapshotFromJSON(json['run_snapshot']),
61
+ 'error': json['error'],
62
+ 'createdAt': (new Date(json['created_at'])),
63
+ 'updatedAt': (new Date(json['updated_at'])),
64
+ };
65
+ }
66
+ export function WorkflowRunResponseToJSON(json) {
67
+ return WorkflowRunResponseToJSONTyped(json, false);
68
+ }
69
+ export function WorkflowRunResponseToJSONTyped(value, ignoreDiscriminator = false) {
70
+ if (value == null) {
71
+ return value;
72
+ }
73
+ return {
74
+ 'id': value['id'],
75
+ 'workflow_definition_id': value['workflowDefinitionId'],
76
+ 'user_id': value['userId'],
77
+ 'runner_type': WorkflowRunnerTypeToJSON(value['runnerType']),
78
+ 'status': WorkflowRunStatusToJSON(value['status']),
79
+ 'started_at': value['startedAt'].toISOString(),
80
+ 'completed_at': value['completedAt'] == null ? value['completedAt'] : value['completedAt'].toISOString(),
81
+ 'run_snapshot': WorkflowRunSnapshotToJSON(value['runSnapshot']),
82
+ 'error': value['error'],
83
+ 'created_at': value['createdAt'].toISOString(),
84
+ 'updated_at': value['updatedAt'].toISOString(),
85
+ };
86
+ }
87
+ export const 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
+ };
@@ -0,0 +1,78 @@
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 { ABCDPathSnapshotFromJSON, ABCDPathSnapshotToJSON, } from './ABCDPathSnapshot';
15
+ import { WorkflowRunnerTypeFromJSON, WorkflowRunnerTypeToJSON, } from './WorkflowRunnerType';
16
+ /**
17
+ * Check if a given object implements the WorkflowRunSnapshot interface.
18
+ */
19
+ export function instanceOfWorkflowRunSnapshot(value) {
20
+ if (!('workflowDefinitionId' in value) || value['workflowDefinitionId'] === undefined)
21
+ return false;
22
+ if (!('workflowName' in value) || value['workflowName'] === undefined)
23
+ return false;
24
+ if (!('runnerType' in value) || value['runnerType'] === undefined)
25
+ return false;
26
+ if (!('userId' in value) || value['userId'] === undefined)
27
+ return false;
28
+ if (!('maxRunDurationSeconds' in value) || value['maxRunDurationSeconds'] === undefined)
29
+ return false;
30
+ if (!('sources' in value) || value['sources'] === undefined)
31
+ return false;
32
+ if (!('instructions' in value) || value['instructions'] === undefined)
33
+ return false;
34
+ if (!('outputs' in value) || value['outputs'] === undefined)
35
+ return false;
36
+ if (!('template' in value) || value['template'] === undefined)
37
+ return false;
38
+ return true;
39
+ }
40
+ export function WorkflowRunSnapshotFromJSON(json) {
41
+ return WorkflowRunSnapshotFromJSONTyped(json, false);
42
+ }
43
+ export function WorkflowRunSnapshotFromJSONTyped(json, ignoreDiscriminator) {
44
+ if (json == null) {
45
+ return json;
46
+ }
47
+ return {
48
+ 'workflowDefinitionId': json['workflow_definition_id'],
49
+ 'workflowName': json['workflow_name'],
50
+ 'runnerType': WorkflowRunnerTypeFromJSON(json['runner_type']),
51
+ 'userId': json['user_id'],
52
+ 'maxRunDurationSeconds': json['max_run_duration_seconds'],
53
+ 'sources': (json['sources'].map(ABCDPathSnapshotFromJSON)),
54
+ 'instructions': (json['instructions'].map(ABCDPathSnapshotFromJSON)),
55
+ 'outputs': (json['outputs'].map(ABCDPathSnapshotFromJSON)),
56
+ 'template': ABCDPathSnapshotFromJSON(json['template']),
57
+ };
58
+ }
59
+ export function WorkflowRunSnapshotToJSON(json) {
60
+ return WorkflowRunSnapshotToJSONTyped(json, false);
61
+ }
62
+ export function WorkflowRunSnapshotToJSONTyped(value, ignoreDiscriminator = false) {
63
+ if (value == null) {
64
+ return value;
65
+ }
66
+ return {
67
+ 'workflow_definition_id': value['workflowDefinitionId'],
68
+ 'workflow_name': value['workflowName'],
69
+ 'runner_type': WorkflowRunnerTypeToJSON(value['runnerType']),
70
+ 'user_id': value['userId'],
71
+ 'max_run_duration_seconds': value['maxRunDurationSeconds'],
72
+ 'sources': (value['sources'].map(ABCDPathSnapshotToJSON)),
73
+ 'instructions': (value['instructions'].map(ABCDPathSnapshotToJSON)),
74
+ 'outputs': (value['outputs'].map(ABCDPathSnapshotToJSON)),
75
+ 'template': ABCDPathSnapshotToJSON(value['template']),
76
+ };
77
+ }
78
+ export const WorkflowRunSnapshotPropertyValidationAttributesMap = {};
@@ -0,0 +1,27 @@
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
+ * Lifecycle status of a workflow run.
14
+ * @export
15
+ */
16
+ export declare const WorkflowRunStatus: {
17
+ readonly Pending: "PENDING";
18
+ readonly Running: "RUNNING";
19
+ readonly Completed: "COMPLETED";
20
+ readonly Failed: "FAILED";
21
+ };
22
+ export type WorkflowRunStatus = typeof WorkflowRunStatus[keyof typeof WorkflowRunStatus];
23
+ export declare function instanceOfWorkflowRunStatus(value: any): boolean;
24
+ export declare function WorkflowRunStatusFromJSON(json: any): WorkflowRunStatus;
25
+ export declare function WorkflowRunStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): WorkflowRunStatus;
26
+ export declare function WorkflowRunStatusToJSON(value?: WorkflowRunStatus | null): any;
27
+ export declare function WorkflowRunStatusToJSONTyped(value: any, ignoreDiscriminator: boolean): WorkflowRunStatus;
@@ -0,0 +1,45 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Knowledge Stack API
5
+ * Knowledge Stack backend API for authentication and knowledge management
6
+ *
7
+ * The version of the OpenAPI document: 0.1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * Lifecycle status of a workflow run.
16
+ * @export
17
+ */
18
+ export const WorkflowRunStatus = {
19
+ Pending: 'PENDING',
20
+ Running: 'RUNNING',
21
+ Completed: 'COMPLETED',
22
+ Failed: 'FAILED'
23
+ };
24
+ export function instanceOfWorkflowRunStatus(value) {
25
+ for (const key in WorkflowRunStatus) {
26
+ if (Object.prototype.hasOwnProperty.call(WorkflowRunStatus, key)) {
27
+ if (WorkflowRunStatus[key] === value) {
28
+ return true;
29
+ }
30
+ }
31
+ }
32
+ return false;
33
+ }
34
+ export function WorkflowRunStatusFromJSON(json) {
35
+ return WorkflowRunStatusFromJSONTyped(json, false);
36
+ }
37
+ export function WorkflowRunStatusFromJSONTyped(json, ignoreDiscriminator) {
38
+ return json;
39
+ }
40
+ export function WorkflowRunStatusToJSON(value) {
41
+ return value;
42
+ }
43
+ export function WorkflowRunStatusToJSONTyped(value, ignoreDiscriminator) {
44
+ return value;
45
+ }
@@ -0,0 +1,24 @@
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
+ * Runner that executes the workflow.
14
+ * @export
15
+ */
16
+ export declare const WorkflowRunnerType: {
17
+ readonly SelfHosted: "SELF_HOSTED";
18
+ };
19
+ export type WorkflowRunnerType = typeof WorkflowRunnerType[keyof typeof WorkflowRunnerType];
20
+ export declare function instanceOfWorkflowRunnerType(value: any): boolean;
21
+ export declare function WorkflowRunnerTypeFromJSON(json: any): WorkflowRunnerType;
22
+ export declare function WorkflowRunnerTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): WorkflowRunnerType;
23
+ export declare function WorkflowRunnerTypeToJSON(value?: WorkflowRunnerType | null): any;
24
+ export declare function WorkflowRunnerTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): WorkflowRunnerType;
@@ -0,0 +1,42 @@
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
+ * Runner that executes the workflow.
16
+ * @export
17
+ */
18
+ export const WorkflowRunnerType = {
19
+ SelfHosted: 'SELF_HOSTED'
20
+ };
21
+ export function instanceOfWorkflowRunnerType(value) {
22
+ for (const key in WorkflowRunnerType) {
23
+ if (Object.prototype.hasOwnProperty.call(WorkflowRunnerType, key)) {
24
+ if (WorkflowRunnerType[key] === value) {
25
+ return true;
26
+ }
27
+ }
28
+ }
29
+ return false;
30
+ }
31
+ export function WorkflowRunnerTypeFromJSON(json) {
32
+ return WorkflowRunnerTypeFromJSONTyped(json, false);
33
+ }
34
+ export function WorkflowRunnerTypeFromJSONTyped(json, ignoreDiscriminator) {
35
+ return json;
36
+ }
37
+ export function WorkflowRunnerTypeToJSON(value) {
38
+ return value;
39
+ }
40
+ export function WorkflowRunnerTypeToJSONTyped(value, ignoreDiscriminator) {
41
+ return value;
42
+ }
@@ -1,3 +1,4 @@
1
+ export * from './ABCDPathSnapshot';
1
2
  export * from './AcceptInviteResponse';
2
3
  export * from './AddMemberRequest';
3
4
  export * from './AncestryResponse';
@@ -33,6 +34,7 @@ export * from './CreateTagRequest';
33
34
  export * from './CreateTenantRequest';
34
35
  export * from './CreateThreadMessageRequest';
35
36
  export * from './CreateThreadRequest';
37
+ export * from './CreateWorkflowDefinitionRequest';
36
38
  export * from './DissolveSectionResponse';
37
39
  export * from './DocumentOrigin';
38
40
  export * from './DocumentResponse';
@@ -68,6 +70,7 @@ export * from './IngestionMode';
68
70
  export * from './InviteResponse';
69
71
  export * from './InviteStatus';
70
72
  export * from './InviteUserRequest';
73
+ export * from './InvokeWorkflowRequest';
71
74
  export * from './LineageEdgeResponse';
72
75
  export * from './LineageGraphResponse';
73
76
  export * from './LineageNodeResponse';
@@ -93,6 +96,8 @@ export * from './PaginatedResponseTenantResponse';
93
96
  export * from './PaginatedResponseTenantUserResponse';
94
97
  export * from './PaginatedResponseThreadMessageResponse';
95
98
  export * from './PaginatedResponseThreadResponse';
99
+ export * from './PaginatedResponseWorkflowDefinitionResponse';
100
+ export * from './PaginatedResponseWorkflowRunResponse';
96
101
  export * from './PaginatedResponseWorkflowSummaryResponse';
97
102
  export * from './PartType';
98
103
  export * from './PasswordResetRequest';
@@ -120,6 +125,8 @@ export * from './SectionContentItem';
120
125
  export * from './SectionContentItemOrChunkContentItem';
121
126
  export * from './SectionResponse';
122
127
  export * from './SectionSystemMetadata';
128
+ export * from './SelfHostedRunnerConfig';
129
+ export * from './SelfHostedRunnerConfigResponse';
123
130
  export * from './SignInRequest';
124
131
  export * from './StepInput';
125
132
  export * from './StepKind';
@@ -154,12 +161,20 @@ export * from './UpdateTagRequest';
154
161
  export * from './UpdateTenantRequest';
155
162
  export * from './UpdateThreadRequest';
156
163
  export * from './UpdateUserRequest';
164
+ export * from './UpdateWorkflowDefinitionRequest';
157
165
  export * from './UserMessageRequest';
158
166
  export * from './UserMessageResponse';
159
167
  export * from './UserResponse';
160
168
  export * from './ValidationError';
161
169
  export * from './VersionChunkIdsResponse';
162
170
  export * from './WorkflowActionResponse';
171
+ export * from './WorkflowCallbackResponse';
163
172
  export * from './WorkflowCancelResponse';
173
+ export * from './WorkflowDefinitionResponse';
164
174
  export * from './WorkflowDetailResponse';
175
+ export * from './WorkflowRunCallbackRequest';
176
+ export * from './WorkflowRunResponse';
177
+ export * from './WorkflowRunSnapshot';
178
+ export * from './WorkflowRunStatus';
179
+ export * from './WorkflowRunnerType';
165
180
  export * from './WorkflowSummaryResponse';
@@ -1,5 +1,6 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
+ export * from './ABCDPathSnapshot';
3
4
  export * from './AcceptInviteResponse';
4
5
  export * from './AddMemberRequest';
5
6
  export * from './AncestryResponse';
@@ -35,6 +36,7 @@ export * from './CreateTagRequest';
35
36
  export * from './CreateTenantRequest';
36
37
  export * from './CreateThreadMessageRequest';
37
38
  export * from './CreateThreadRequest';
39
+ export * from './CreateWorkflowDefinitionRequest';
38
40
  export * from './DissolveSectionResponse';
39
41
  export * from './DocumentOrigin';
40
42
  export * from './DocumentResponse';
@@ -70,6 +72,7 @@ export * from './IngestionMode';
70
72
  export * from './InviteResponse';
71
73
  export * from './InviteStatus';
72
74
  export * from './InviteUserRequest';
75
+ export * from './InvokeWorkflowRequest';
73
76
  export * from './LineageEdgeResponse';
74
77
  export * from './LineageGraphResponse';
75
78
  export * from './LineageNodeResponse';
@@ -95,6 +98,8 @@ export * from './PaginatedResponseTenantResponse';
95
98
  export * from './PaginatedResponseTenantUserResponse';
96
99
  export * from './PaginatedResponseThreadMessageResponse';
97
100
  export * from './PaginatedResponseThreadResponse';
101
+ export * from './PaginatedResponseWorkflowDefinitionResponse';
102
+ export * from './PaginatedResponseWorkflowRunResponse';
98
103
  export * from './PaginatedResponseWorkflowSummaryResponse';
99
104
  export * from './PartType';
100
105
  export * from './PasswordResetRequest';
@@ -122,6 +127,8 @@ export * from './SectionContentItem';
122
127
  export * from './SectionContentItemOrChunkContentItem';
123
128
  export * from './SectionResponse';
124
129
  export * from './SectionSystemMetadata';
130
+ export * from './SelfHostedRunnerConfig';
131
+ export * from './SelfHostedRunnerConfigResponse';
125
132
  export * from './SignInRequest';
126
133
  export * from './StepInput';
127
134
  export * from './StepKind';
@@ -156,12 +163,20 @@ export * from './UpdateTagRequest';
156
163
  export * from './UpdateTenantRequest';
157
164
  export * from './UpdateThreadRequest';
158
165
  export * from './UpdateUserRequest';
166
+ export * from './UpdateWorkflowDefinitionRequest';
159
167
  export * from './UserMessageRequest';
160
168
  export * from './UserMessageResponse';
161
169
  export * from './UserResponse';
162
170
  export * from './ValidationError';
163
171
  export * from './VersionChunkIdsResponse';
164
172
  export * from './WorkflowActionResponse';
173
+ export * from './WorkflowCallbackResponse';
165
174
  export * from './WorkflowCancelResponse';
175
+ export * from './WorkflowDefinitionResponse';
166
176
  export * from './WorkflowDetailResponse';
177
+ export * from './WorkflowRunCallbackRequest';
178
+ export * from './WorkflowRunResponse';
179
+ export * from './WorkflowRunSnapshot';
180
+ export * from './WorkflowRunStatus';
181
+ export * from './WorkflowRunnerType';
167
182
  export * from './WorkflowSummaryResponse';