@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,53 @@
1
+
2
+ # UpdateWorkflowDefinitionRequest
3
+
4
+ Full replacement (PUT semantics). All fields are required.
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `name` | string
11
+ `description` | string
12
+ `runnerType` | [WorkflowRunnerType](WorkflowRunnerType.md)
13
+ `runnerConfig` | [SelfHostedRunnerConfig](SelfHostedRunnerConfig.md)
14
+ `maxRunDurationSeconds` | number
15
+ `sourcePathPartIds` | Array<string>
16
+ `instructionPathPartIds` | Array<string>
17
+ `outputPathPartIds` | Array<string>
18
+ `templatePathPartId` | string
19
+ `isActive` | boolean
20
+
21
+ ## Example
22
+
23
+ ```typescript
24
+ import type { UpdateWorkflowDefinitionRequest } from '@knowledge-stack/ksapi'
25
+
26
+ // TODO: Update the object below with actual values
27
+ const example = {
28
+ "name": null,
29
+ "description": null,
30
+ "runnerType": null,
31
+ "runnerConfig": null,
32
+ "maxRunDurationSeconds": null,
33
+ "sourcePathPartIds": null,
34
+ "instructionPathPartIds": null,
35
+ "outputPathPartIds": null,
36
+ "templatePathPartId": null,
37
+ "isActive": null,
38
+ } satisfies UpdateWorkflowDefinitionRequest
39
+
40
+ console.log(example)
41
+
42
+ // Convert the instance to a JSON string
43
+ const exampleJSON: string = JSON.stringify(example)
44
+ console.log(exampleJSON)
45
+
46
+ // Parse the JSON string back to an object
47
+ const exampleParsed = JSON.parse(exampleJSON) as UpdateWorkflowDefinitionRequest
48
+ console.log(exampleParsed)
49
+ ```
50
+
51
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
52
+
53
+
@@ -0,0 +1,35 @@
1
+
2
+ # WorkflowCallbackResponse
3
+
4
+ Response from the runner callback endpoint.
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `status` | string
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import type { WorkflowCallbackResponse } from '@knowledge-stack/ksapi'
16
+
17
+ // TODO: Update the object below with actual values
18
+ const example = {
19
+ "status": null,
20
+ } satisfies WorkflowCallbackResponse
21
+
22
+ console.log(example)
23
+
24
+ // Convert the instance to a JSON string
25
+ const exampleJSON: string = JSON.stringify(example)
26
+ console.log(exampleJSON)
27
+
28
+ // Parse the JSON string back to an object
29
+ const exampleParsed = JSON.parse(exampleJSON) as WorkflowCallbackResponse
30
+ console.log(exampleParsed)
31
+ ```
32
+
33
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
34
+
35
+
@@ -0,0 +1,59 @@
1
+
2
+ # WorkflowDefinitionResponse
3
+
4
+ Workflow definition response.
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `id` | string
11
+ `name` | string
12
+ `description` | string
13
+ `runnerType` | [WorkflowRunnerType](WorkflowRunnerType.md)
14
+ `runnerConfig` | [SelfHostedRunnerConfigResponse](SelfHostedRunnerConfigResponse.md)
15
+ `maxRunDurationSeconds` | number
16
+ `sourcePathPartIds` | Array<string>
17
+ `instructionPathPartIds` | Array<string>
18
+ `outputPathPartIds` | Array<string>
19
+ `templatePathPartId` | string
20
+ `isActive` | boolean
21
+ `createdAt` | Date
22
+ `updatedAt` | Date
23
+
24
+ ## Example
25
+
26
+ ```typescript
27
+ import type { WorkflowDefinitionResponse } from '@knowledge-stack/ksapi'
28
+
29
+ // TODO: Update the object below with actual values
30
+ const example = {
31
+ "id": null,
32
+ "name": null,
33
+ "description": null,
34
+ "runnerType": null,
35
+ "runnerConfig": null,
36
+ "maxRunDurationSeconds": null,
37
+ "sourcePathPartIds": null,
38
+ "instructionPathPartIds": null,
39
+ "outputPathPartIds": null,
40
+ "templatePathPartId": null,
41
+ "isActive": null,
42
+ "createdAt": null,
43
+ "updatedAt": null,
44
+ } satisfies WorkflowDefinitionResponse
45
+
46
+ console.log(example)
47
+
48
+ // Convert the instance to a JSON string
49
+ const exampleJSON: string = JSON.stringify(example)
50
+ console.log(exampleJSON)
51
+
52
+ // Parse the JSON string back to an object
53
+ const exampleParsed = JSON.parse(exampleJSON) as WorkflowDefinitionResponse
54
+ console.log(exampleParsed)
55
+ ```
56
+
57
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
58
+
59
+
@@ -0,0 +1,534 @@
1
+ # WorkflowDefinitionsApi
2
+
3
+ All URIs are relative to *http://localhost:8000*
4
+
5
+ | Method | HTTP request | Description |
6
+ |------------- | ------------- | -------------|
7
+ | [**createWorkflowDefinition**](WorkflowDefinitionsApi.md#createworkflowdefinitionoperation) | **POST** /v1/workflow-definitions | Create Workflow Definition Handler |
8
+ | [**deleteWorkflowDefinition**](WorkflowDefinitionsApi.md#deleteworkflowdefinition) | **DELETE** /v1/workflow-definitions/{definition_id} | Delete Workflow Definition Handler |
9
+ | [**getWorkflowDefinition**](WorkflowDefinitionsApi.md#getworkflowdefinition) | **GET** /v1/workflow-definitions/{definition_id} | Get Workflow Definition Handler |
10
+ | [**invokeWorkflow**](WorkflowDefinitionsApi.md#invokeworkflowoperation) | **POST** /v1/workflow-definitions/{definition_id}/invoke | Invoke Workflow Handler |
11
+ | [**listWorkflowDefinitions**](WorkflowDefinitionsApi.md#listworkflowdefinitions) | **GET** /v1/workflow-definitions | List Workflow Definitions Handler |
12
+ | [**listWorkflowRuns**](WorkflowDefinitionsApi.md#listworkflowruns) | **GET** /v1/workflow-definitions/{definition_id}/runs | List Workflow Runs Handler |
13
+ | [**updateWorkflowDefinition**](WorkflowDefinitionsApi.md#updateworkflowdefinitionoperation) | **PUT** /v1/workflow-definitions/{definition_id} | Update Workflow Definition Handler |
14
+
15
+
16
+
17
+ ## createWorkflowDefinition
18
+
19
+ > WorkflowDefinitionResponse createWorkflowDefinition(createWorkflowDefinitionRequest, authorization, ksUat)
20
+
21
+ Create Workflow Definition Handler
22
+
23
+ ### Example
24
+
25
+ ```ts
26
+ import {
27
+ Configuration,
28
+ WorkflowDefinitionsApi,
29
+ } from '@knowledge-stack/ksapi';
30
+ import type { CreateWorkflowDefinitionOperationRequest } from '@knowledge-stack/ksapi';
31
+
32
+ async function example() {
33
+ console.log("🚀 Testing @knowledge-stack/ksapi SDK...");
34
+ const api = new WorkflowDefinitionsApi();
35
+
36
+ const body = {
37
+ // CreateWorkflowDefinitionRequest
38
+ createWorkflowDefinitionRequest: ...,
39
+ // string (optional)
40
+ authorization: authorization_example,
41
+ // string (optional)
42
+ ksUat: ksUat_example,
43
+ } satisfies CreateWorkflowDefinitionOperationRequest;
44
+
45
+ try {
46
+ const data = await api.createWorkflowDefinition(body);
47
+ console.log(data);
48
+ } catch (error) {
49
+ console.error(error);
50
+ }
51
+ }
52
+
53
+ // Run the test
54
+ example().catch(console.error);
55
+ ```
56
+
57
+ ### Parameters
58
+
59
+
60
+ | Name | Type | Description | Notes |
61
+ |------------- | ------------- | ------------- | -------------|
62
+ | **createWorkflowDefinitionRequest** | [CreateWorkflowDefinitionRequest](CreateWorkflowDefinitionRequest.md) | | |
63
+ | **authorization** | `string` | | [Optional] [Defaults to `undefined`] |
64
+ | **ksUat** | `string` | | [Optional] [Defaults to `undefined`] |
65
+
66
+ ### Return type
67
+
68
+ [**WorkflowDefinitionResponse**](WorkflowDefinitionResponse.md)
69
+
70
+ ### Authorization
71
+
72
+ No authorization required
73
+
74
+ ### HTTP request headers
75
+
76
+ - **Content-Type**: `application/json`
77
+ - **Accept**: `application/json`
78
+
79
+
80
+ ### HTTP response details
81
+ | Status code | Description | Response headers |
82
+ |-------------|-------------|------------------|
83
+ | **201** | Successful Response | - |
84
+ | **422** | Validation Error | - |
85
+
86
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
87
+
88
+
89
+ ## deleteWorkflowDefinition
90
+
91
+ > deleteWorkflowDefinition(definitionId, authorization, ksUat)
92
+
93
+ Delete Workflow Definition Handler
94
+
95
+ ### Example
96
+
97
+ ```ts
98
+ import {
99
+ Configuration,
100
+ WorkflowDefinitionsApi,
101
+ } from '@knowledge-stack/ksapi';
102
+ import type { DeleteWorkflowDefinitionRequest } from '@knowledge-stack/ksapi';
103
+
104
+ async function example() {
105
+ console.log("🚀 Testing @knowledge-stack/ksapi SDK...");
106
+ const api = new WorkflowDefinitionsApi();
107
+
108
+ const body = {
109
+ // string
110
+ definitionId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
111
+ // string (optional)
112
+ authorization: authorization_example,
113
+ // string (optional)
114
+ ksUat: ksUat_example,
115
+ } satisfies DeleteWorkflowDefinitionRequest;
116
+
117
+ try {
118
+ const data = await api.deleteWorkflowDefinition(body);
119
+ console.log(data);
120
+ } catch (error) {
121
+ console.error(error);
122
+ }
123
+ }
124
+
125
+ // Run the test
126
+ example().catch(console.error);
127
+ ```
128
+
129
+ ### Parameters
130
+
131
+
132
+ | Name | Type | Description | Notes |
133
+ |------------- | ------------- | ------------- | -------------|
134
+ | **definitionId** | `string` | | [Defaults to `undefined`] |
135
+ | **authorization** | `string` | | [Optional] [Defaults to `undefined`] |
136
+ | **ksUat** | `string` | | [Optional] [Defaults to `undefined`] |
137
+
138
+ ### Return type
139
+
140
+ `void` (Empty response body)
141
+
142
+ ### Authorization
143
+
144
+ No authorization required
145
+
146
+ ### HTTP request headers
147
+
148
+ - **Content-Type**: Not defined
149
+ - **Accept**: `application/json`
150
+
151
+
152
+ ### HTTP response details
153
+ | Status code | Description | Response headers |
154
+ |-------------|-------------|------------------|
155
+ | **204** | Successful Response | - |
156
+ | **422** | Validation Error | - |
157
+
158
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
159
+
160
+
161
+ ## getWorkflowDefinition
162
+
163
+ > WorkflowDefinitionResponse getWorkflowDefinition(definitionId, authorization, ksUat)
164
+
165
+ Get Workflow Definition Handler
166
+
167
+ ### Example
168
+
169
+ ```ts
170
+ import {
171
+ Configuration,
172
+ WorkflowDefinitionsApi,
173
+ } from '@knowledge-stack/ksapi';
174
+ import type { GetWorkflowDefinitionRequest } from '@knowledge-stack/ksapi';
175
+
176
+ async function example() {
177
+ console.log("🚀 Testing @knowledge-stack/ksapi SDK...");
178
+ const api = new WorkflowDefinitionsApi();
179
+
180
+ const body = {
181
+ // string
182
+ definitionId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
183
+ // string (optional)
184
+ authorization: authorization_example,
185
+ // string (optional)
186
+ ksUat: ksUat_example,
187
+ } satisfies GetWorkflowDefinitionRequest;
188
+
189
+ try {
190
+ const data = await api.getWorkflowDefinition(body);
191
+ console.log(data);
192
+ } catch (error) {
193
+ console.error(error);
194
+ }
195
+ }
196
+
197
+ // Run the test
198
+ example().catch(console.error);
199
+ ```
200
+
201
+ ### Parameters
202
+
203
+
204
+ | Name | Type | Description | Notes |
205
+ |------------- | ------------- | ------------- | -------------|
206
+ | **definitionId** | `string` | | [Defaults to `undefined`] |
207
+ | **authorization** | `string` | | [Optional] [Defaults to `undefined`] |
208
+ | **ksUat** | `string` | | [Optional] [Defaults to `undefined`] |
209
+
210
+ ### Return type
211
+
212
+ [**WorkflowDefinitionResponse**](WorkflowDefinitionResponse.md)
213
+
214
+ ### Authorization
215
+
216
+ No authorization required
217
+
218
+ ### HTTP request headers
219
+
220
+ - **Content-Type**: Not defined
221
+ - **Accept**: `application/json`
222
+
223
+
224
+ ### HTTP response details
225
+ | Status code | Description | Response headers |
226
+ |-------------|-------------|------------------|
227
+ | **200** | Successful Response | - |
228
+ | **422** | Validation Error | - |
229
+
230
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
231
+
232
+
233
+ ## invokeWorkflow
234
+
235
+ > WorkflowRunResponse invokeWorkflow(definitionId, invokeWorkflowRequest, authorization, ksUat)
236
+
237
+ Invoke Workflow Handler
238
+
239
+ ### Example
240
+
241
+ ```ts
242
+ import {
243
+ Configuration,
244
+ WorkflowDefinitionsApi,
245
+ } from '@knowledge-stack/ksapi';
246
+ import type { InvokeWorkflowOperationRequest } from '@knowledge-stack/ksapi';
247
+
248
+ async function example() {
249
+ console.log("🚀 Testing @knowledge-stack/ksapi SDK...");
250
+ const api = new WorkflowDefinitionsApi();
251
+
252
+ const body = {
253
+ // string
254
+ definitionId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
255
+ // InvokeWorkflowRequest
256
+ invokeWorkflowRequest: ...,
257
+ // string (optional)
258
+ authorization: authorization_example,
259
+ // string (optional)
260
+ ksUat: ksUat_example,
261
+ } satisfies InvokeWorkflowOperationRequest;
262
+
263
+ try {
264
+ const data = await api.invokeWorkflow(body);
265
+ console.log(data);
266
+ } catch (error) {
267
+ console.error(error);
268
+ }
269
+ }
270
+
271
+ // Run the test
272
+ example().catch(console.error);
273
+ ```
274
+
275
+ ### Parameters
276
+
277
+
278
+ | Name | Type | Description | Notes |
279
+ |------------- | ------------- | ------------- | -------------|
280
+ | **definitionId** | `string` | | [Defaults to `undefined`] |
281
+ | **invokeWorkflowRequest** | [InvokeWorkflowRequest](InvokeWorkflowRequest.md) | | |
282
+ | **authorization** | `string` | | [Optional] [Defaults to `undefined`] |
283
+ | **ksUat** | `string` | | [Optional] [Defaults to `undefined`] |
284
+
285
+ ### Return type
286
+
287
+ [**WorkflowRunResponse**](WorkflowRunResponse.md)
288
+
289
+ ### Authorization
290
+
291
+ No authorization required
292
+
293
+ ### HTTP request headers
294
+
295
+ - **Content-Type**: `application/json`
296
+ - **Accept**: `application/json`
297
+
298
+
299
+ ### HTTP response details
300
+ | Status code | Description | Response headers |
301
+ |-------------|-------------|------------------|
302
+ | **202** | Successful Response | - |
303
+ | **422** | Validation Error | - |
304
+
305
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
306
+
307
+
308
+ ## listWorkflowDefinitions
309
+
310
+ > PaginatedResponseWorkflowDefinitionResponse listWorkflowDefinitions(limit, offset, authorization, ksUat)
311
+
312
+ List Workflow Definitions Handler
313
+
314
+ ### Example
315
+
316
+ ```ts
317
+ import {
318
+ Configuration,
319
+ WorkflowDefinitionsApi,
320
+ } from '@knowledge-stack/ksapi';
321
+ import type { ListWorkflowDefinitionsRequest } from '@knowledge-stack/ksapi';
322
+
323
+ async function example() {
324
+ console.log("🚀 Testing @knowledge-stack/ksapi SDK...");
325
+ const api = new WorkflowDefinitionsApi();
326
+
327
+ const body = {
328
+ // number | Number of items per page (optional)
329
+ limit: 56,
330
+ // number | Number of items to skip (optional)
331
+ offset: 56,
332
+ // string (optional)
333
+ authorization: authorization_example,
334
+ // string (optional)
335
+ ksUat: ksUat_example,
336
+ } satisfies ListWorkflowDefinitionsRequest;
337
+
338
+ try {
339
+ const data = await api.listWorkflowDefinitions(body);
340
+ console.log(data);
341
+ } catch (error) {
342
+ console.error(error);
343
+ }
344
+ }
345
+
346
+ // Run the test
347
+ example().catch(console.error);
348
+ ```
349
+
350
+ ### Parameters
351
+
352
+
353
+ | Name | Type | Description | Notes |
354
+ |------------- | ------------- | ------------- | -------------|
355
+ | **limit** | `number` | Number of items per page | [Optional] [Defaults to `20`] |
356
+ | **offset** | `number` | Number of items to skip | [Optional] [Defaults to `0`] |
357
+ | **authorization** | `string` | | [Optional] [Defaults to `undefined`] |
358
+ | **ksUat** | `string` | | [Optional] [Defaults to `undefined`] |
359
+
360
+ ### Return type
361
+
362
+ [**PaginatedResponseWorkflowDefinitionResponse**](PaginatedResponseWorkflowDefinitionResponse.md)
363
+
364
+ ### Authorization
365
+
366
+ No authorization required
367
+
368
+ ### HTTP request headers
369
+
370
+ - **Content-Type**: Not defined
371
+ - **Accept**: `application/json`
372
+
373
+
374
+ ### HTTP response details
375
+ | Status code | Description | Response headers |
376
+ |-------------|-------------|------------------|
377
+ | **200** | Successful Response | - |
378
+ | **422** | Validation Error | - |
379
+
380
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
381
+
382
+
383
+ ## listWorkflowRuns
384
+
385
+ > PaginatedResponseWorkflowRunResponse listWorkflowRuns(definitionId, limit, offset, authorization, ksUat)
386
+
387
+ List Workflow Runs Handler
388
+
389
+ ### Example
390
+
391
+ ```ts
392
+ import {
393
+ Configuration,
394
+ WorkflowDefinitionsApi,
395
+ } from '@knowledge-stack/ksapi';
396
+ import type { ListWorkflowRunsRequest } from '@knowledge-stack/ksapi';
397
+
398
+ async function example() {
399
+ console.log("🚀 Testing @knowledge-stack/ksapi SDK...");
400
+ const api = new WorkflowDefinitionsApi();
401
+
402
+ const body = {
403
+ // string
404
+ definitionId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
405
+ // number | Number of items per page (optional)
406
+ limit: 56,
407
+ // number | Number of items to skip (optional)
408
+ offset: 56,
409
+ // string (optional)
410
+ authorization: authorization_example,
411
+ // string (optional)
412
+ ksUat: ksUat_example,
413
+ } satisfies ListWorkflowRunsRequest;
414
+
415
+ try {
416
+ const data = await api.listWorkflowRuns(body);
417
+ console.log(data);
418
+ } catch (error) {
419
+ console.error(error);
420
+ }
421
+ }
422
+
423
+ // Run the test
424
+ example().catch(console.error);
425
+ ```
426
+
427
+ ### Parameters
428
+
429
+
430
+ | Name | Type | Description | Notes |
431
+ |------------- | ------------- | ------------- | -------------|
432
+ | **definitionId** | `string` | | [Defaults to `undefined`] |
433
+ | **limit** | `number` | Number of items per page | [Optional] [Defaults to `20`] |
434
+ | **offset** | `number` | Number of items to skip | [Optional] [Defaults to `0`] |
435
+ | **authorization** | `string` | | [Optional] [Defaults to `undefined`] |
436
+ | **ksUat** | `string` | | [Optional] [Defaults to `undefined`] |
437
+
438
+ ### Return type
439
+
440
+ [**PaginatedResponseWorkflowRunResponse**](PaginatedResponseWorkflowRunResponse.md)
441
+
442
+ ### Authorization
443
+
444
+ No authorization required
445
+
446
+ ### HTTP request headers
447
+
448
+ - **Content-Type**: Not defined
449
+ - **Accept**: `application/json`
450
+
451
+
452
+ ### HTTP response details
453
+ | Status code | Description | Response headers |
454
+ |-------------|-------------|------------------|
455
+ | **200** | Successful Response | - |
456
+ | **422** | Validation Error | - |
457
+
458
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
459
+
460
+
461
+ ## updateWorkflowDefinition
462
+
463
+ > WorkflowDefinitionResponse updateWorkflowDefinition(definitionId, updateWorkflowDefinitionRequest, authorization, ksUat)
464
+
465
+ Update Workflow Definition Handler
466
+
467
+ ### Example
468
+
469
+ ```ts
470
+ import {
471
+ Configuration,
472
+ WorkflowDefinitionsApi,
473
+ } from '@knowledge-stack/ksapi';
474
+ import type { UpdateWorkflowDefinitionOperationRequest } from '@knowledge-stack/ksapi';
475
+
476
+ async function example() {
477
+ console.log("🚀 Testing @knowledge-stack/ksapi SDK...");
478
+ const api = new WorkflowDefinitionsApi();
479
+
480
+ const body = {
481
+ // string
482
+ definitionId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
483
+ // UpdateWorkflowDefinitionRequest
484
+ updateWorkflowDefinitionRequest: ...,
485
+ // string (optional)
486
+ authorization: authorization_example,
487
+ // string (optional)
488
+ ksUat: ksUat_example,
489
+ } satisfies UpdateWorkflowDefinitionOperationRequest;
490
+
491
+ try {
492
+ const data = await api.updateWorkflowDefinition(body);
493
+ console.log(data);
494
+ } catch (error) {
495
+ console.error(error);
496
+ }
497
+ }
498
+
499
+ // Run the test
500
+ example().catch(console.error);
501
+ ```
502
+
503
+ ### Parameters
504
+
505
+
506
+ | Name | Type | Description | Notes |
507
+ |------------- | ------------- | ------------- | -------------|
508
+ | **definitionId** | `string` | | [Defaults to `undefined`] |
509
+ | **updateWorkflowDefinitionRequest** | [UpdateWorkflowDefinitionRequest](UpdateWorkflowDefinitionRequest.md) | | |
510
+ | **authorization** | `string` | | [Optional] [Defaults to `undefined`] |
511
+ | **ksUat** | `string` | | [Optional] [Defaults to `undefined`] |
512
+
513
+ ### Return type
514
+
515
+ [**WorkflowDefinitionResponse**](WorkflowDefinitionResponse.md)
516
+
517
+ ### Authorization
518
+
519
+ No authorization required
520
+
521
+ ### HTTP request headers
522
+
523
+ - **Content-Type**: `application/json`
524
+ - **Accept**: `application/json`
525
+
526
+
527
+ ### HTTP response details
528
+ | Status code | Description | Response headers |
529
+ |-------------|-------------|------------------|
530
+ | **200** | Successful Response | - |
531
+ | **422** | Validation Error | - |
532
+
533
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
534
+