@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,37 @@
1
+
2
+ # WorkflowRunCallbackRequest
3
+
4
+ Request body for the runner callback endpoint.
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `status` | string
11
+ `error` | string
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import type { WorkflowRunCallbackRequest } from '@knowledge-stack/ksapi'
17
+
18
+ // TODO: Update the object below with actual values
19
+ const example = {
20
+ "status": null,
21
+ "error": null,
22
+ } satisfies WorkflowRunCallbackRequest
23
+
24
+ console.log(example)
25
+
26
+ // Convert the instance to a JSON string
27
+ const exampleJSON: string = JSON.stringify(example)
28
+ console.log(exampleJSON)
29
+
30
+ // Parse the JSON string back to an object
31
+ const exampleParsed = JSON.parse(exampleJSON) as WorkflowRunCallbackRequest
32
+ console.log(exampleParsed)
33
+ ```
34
+
35
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
36
+
37
+
@@ -0,0 +1,55 @@
1
+
2
+ # WorkflowRunResponse
3
+
4
+ Workflow run response.
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `id` | string
11
+ `workflowDefinitionId` | string
12
+ `userId` | string
13
+ `runnerType` | [WorkflowRunnerType](WorkflowRunnerType.md)
14
+ `status` | [WorkflowRunStatus](WorkflowRunStatus.md)
15
+ `startedAt` | Date
16
+ `completedAt` | Date
17
+ `runSnapshot` | [WorkflowRunSnapshot](WorkflowRunSnapshot.md)
18
+ `error` | string
19
+ `createdAt` | Date
20
+ `updatedAt` | Date
21
+
22
+ ## Example
23
+
24
+ ```typescript
25
+ import type { WorkflowRunResponse } from '@knowledge-stack/ksapi'
26
+
27
+ // TODO: Update the object below with actual values
28
+ const example = {
29
+ "id": null,
30
+ "workflowDefinitionId": null,
31
+ "userId": null,
32
+ "runnerType": null,
33
+ "status": null,
34
+ "startedAt": null,
35
+ "completedAt": null,
36
+ "runSnapshot": null,
37
+ "error": null,
38
+ "createdAt": null,
39
+ "updatedAt": null,
40
+ } satisfies WorkflowRunResponse
41
+
42
+ console.log(example)
43
+
44
+ // Convert the instance to a JSON string
45
+ const exampleJSON: string = JSON.stringify(example)
46
+ console.log(exampleJSON)
47
+
48
+ // Parse the JSON string back to an object
49
+ const exampleParsed = JSON.parse(exampleJSON) as WorkflowRunResponse
50
+ console.log(exampleParsed)
51
+ ```
52
+
53
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
54
+
55
+
@@ -0,0 +1,51 @@
1
+
2
+ # WorkflowRunSnapshot
3
+
4
+ Frozen ABCD configuration captured at workflow trigger time.
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `workflowDefinitionId` | string
11
+ `workflowName` | string
12
+ `runnerType` | [WorkflowRunnerType](WorkflowRunnerType.md)
13
+ `userId` | string
14
+ `maxRunDurationSeconds` | number
15
+ `sources` | [Array<ABCDPathSnapshot>](ABCDPathSnapshot.md)
16
+ `instructions` | [Array<ABCDPathSnapshot>](ABCDPathSnapshot.md)
17
+ `outputs` | [Array<ABCDPathSnapshot>](ABCDPathSnapshot.md)
18
+ `template` | [ABCDPathSnapshot](ABCDPathSnapshot.md)
19
+
20
+ ## Example
21
+
22
+ ```typescript
23
+ import type { WorkflowRunSnapshot } from '@knowledge-stack/ksapi'
24
+
25
+ // TODO: Update the object below with actual values
26
+ const example = {
27
+ "workflowDefinitionId": null,
28
+ "workflowName": null,
29
+ "runnerType": null,
30
+ "userId": null,
31
+ "maxRunDurationSeconds": null,
32
+ "sources": null,
33
+ "instructions": null,
34
+ "outputs": null,
35
+ "template": null,
36
+ } satisfies WorkflowRunSnapshot
37
+
38
+ console.log(example)
39
+
40
+ // Convert the instance to a JSON string
41
+ const exampleJSON: string = JSON.stringify(example)
42
+ console.log(exampleJSON)
43
+
44
+ // Parse the JSON string back to an object
45
+ const exampleParsed = JSON.parse(exampleJSON) as WorkflowRunSnapshot
46
+ console.log(exampleParsed)
47
+ ```
48
+
49
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
50
+
51
+
@@ -0,0 +1,33 @@
1
+
2
+ # WorkflowRunStatus
3
+
4
+ Lifecycle status of a workflow run.
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import type { WorkflowRunStatus } from '@knowledge-stack/ksapi'
15
+
16
+ // TODO: Update the object below with actual values
17
+ const example = {
18
+ } satisfies WorkflowRunStatus
19
+
20
+ console.log(example)
21
+
22
+ // Convert the instance to a JSON string
23
+ const exampleJSON: string = JSON.stringify(example)
24
+ console.log(exampleJSON)
25
+
26
+ // Parse the JSON string back to an object
27
+ const exampleParsed = JSON.parse(exampleJSON) as WorkflowRunStatus
28
+ console.log(exampleParsed)
29
+ ```
30
+
31
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
32
+
33
+
@@ -0,0 +1,33 @@
1
+
2
+ # WorkflowRunnerType
3
+
4
+ Runner that executes the workflow.
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import type { WorkflowRunnerType } from '@knowledge-stack/ksapi'
15
+
16
+ // TODO: Update the object below with actual values
17
+ const example = {
18
+ } satisfies WorkflowRunnerType
19
+
20
+ console.log(example)
21
+
22
+ // Convert the instance to a JSON string
23
+ const exampleJSON: string = JSON.stringify(example)
24
+ console.log(exampleJSON)
25
+
26
+ // Parse the JSON string back to an object
27
+ const exampleParsed = JSON.parse(exampleJSON) as WorkflowRunnerType
28
+ console.log(exampleParsed)
29
+ ```
30
+
31
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
32
+
33
+
@@ -0,0 +1,224 @@
1
+ # WorkflowRunsApi
2
+
3
+ All URIs are relative to *http://localhost:8000*
4
+
5
+ | Method | HTTP request | Description |
6
+ |------------- | ------------- | -------------|
7
+ | [**deleteWorkflowRun**](WorkflowRunsApi.md#deleteworkflowrun) | **DELETE** /v1/workflow-runs/{run_id} | Delete Workflow Run Handler |
8
+ | [**getWorkflowRun**](WorkflowRunsApi.md#getworkflowrun) | **GET** /v1/workflow-runs/{run_id} | Get Workflow Run Handler |
9
+ | [**workflowRunCallback**](WorkflowRunsApi.md#workflowruncallbackoperation) | **POST** /v1/workflow-runs/{run_id}/callback | Workflow Run Callback Handler |
10
+
11
+
12
+
13
+ ## deleteWorkflowRun
14
+
15
+ > deleteWorkflowRun(runId, authorization, ksUat)
16
+
17
+ Delete Workflow Run Handler
18
+
19
+ ### Example
20
+
21
+ ```ts
22
+ import {
23
+ Configuration,
24
+ WorkflowRunsApi,
25
+ } from '@knowledge-stack/ksapi';
26
+ import type { DeleteWorkflowRunRequest } from '@knowledge-stack/ksapi';
27
+
28
+ async function example() {
29
+ console.log("🚀 Testing @knowledge-stack/ksapi SDK...");
30
+ const api = new WorkflowRunsApi();
31
+
32
+ const body = {
33
+ // string
34
+ runId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
35
+ // string (optional)
36
+ authorization: authorization_example,
37
+ // string (optional)
38
+ ksUat: ksUat_example,
39
+ } satisfies DeleteWorkflowRunRequest;
40
+
41
+ try {
42
+ const data = await api.deleteWorkflowRun(body);
43
+ console.log(data);
44
+ } catch (error) {
45
+ console.error(error);
46
+ }
47
+ }
48
+
49
+ // Run the test
50
+ example().catch(console.error);
51
+ ```
52
+
53
+ ### Parameters
54
+
55
+
56
+ | Name | Type | Description | Notes |
57
+ |------------- | ------------- | ------------- | -------------|
58
+ | **runId** | `string` | | [Defaults to `undefined`] |
59
+ | **authorization** | `string` | | [Optional] [Defaults to `undefined`] |
60
+ | **ksUat** | `string` | | [Optional] [Defaults to `undefined`] |
61
+
62
+ ### Return type
63
+
64
+ `void` (Empty response body)
65
+
66
+ ### Authorization
67
+
68
+ No authorization required
69
+
70
+ ### HTTP request headers
71
+
72
+ - **Content-Type**: Not defined
73
+ - **Accept**: `application/json`
74
+
75
+
76
+ ### HTTP response details
77
+ | Status code | Description | Response headers |
78
+ |-------------|-------------|------------------|
79
+ | **204** | Successful Response | - |
80
+ | **422** | Validation Error | - |
81
+
82
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
83
+
84
+
85
+ ## getWorkflowRun
86
+
87
+ > WorkflowRunResponse getWorkflowRun(runId, authorization, ksUat)
88
+
89
+ Get Workflow Run Handler
90
+
91
+ ### Example
92
+
93
+ ```ts
94
+ import {
95
+ Configuration,
96
+ WorkflowRunsApi,
97
+ } from '@knowledge-stack/ksapi';
98
+ import type { GetWorkflowRunRequest } from '@knowledge-stack/ksapi';
99
+
100
+ async function example() {
101
+ console.log("🚀 Testing @knowledge-stack/ksapi SDK...");
102
+ const api = new WorkflowRunsApi();
103
+
104
+ const body = {
105
+ // string
106
+ runId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
107
+ // string (optional)
108
+ authorization: authorization_example,
109
+ // string (optional)
110
+ ksUat: ksUat_example,
111
+ } satisfies GetWorkflowRunRequest;
112
+
113
+ try {
114
+ const data = await api.getWorkflowRun(body);
115
+ console.log(data);
116
+ } catch (error) {
117
+ console.error(error);
118
+ }
119
+ }
120
+
121
+ // Run the test
122
+ example().catch(console.error);
123
+ ```
124
+
125
+ ### Parameters
126
+
127
+
128
+ | Name | Type | Description | Notes |
129
+ |------------- | ------------- | ------------- | -------------|
130
+ | **runId** | `string` | | [Defaults to `undefined`] |
131
+ | **authorization** | `string` | | [Optional] [Defaults to `undefined`] |
132
+ | **ksUat** | `string` | | [Optional] [Defaults to `undefined`] |
133
+
134
+ ### Return type
135
+
136
+ [**WorkflowRunResponse**](WorkflowRunResponse.md)
137
+
138
+ ### Authorization
139
+
140
+ No authorization required
141
+
142
+ ### HTTP request headers
143
+
144
+ - **Content-Type**: Not defined
145
+ - **Accept**: `application/json`
146
+
147
+
148
+ ### HTTP response details
149
+ | Status code | Description | Response headers |
150
+ |-------------|-------------|------------------|
151
+ | **200** | Successful Response | - |
152
+ | **422** | Validation Error | - |
153
+
154
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
155
+
156
+
157
+ ## workflowRunCallback
158
+
159
+ > WorkflowCallbackResponse workflowRunCallback(runId, workflowRunCallbackRequest)
160
+
161
+ Workflow Run Callback Handler
162
+
163
+ ### Example
164
+
165
+ ```ts
166
+ import {
167
+ Configuration,
168
+ WorkflowRunsApi,
169
+ } from '@knowledge-stack/ksapi';
170
+ import type { WorkflowRunCallbackOperationRequest } from '@knowledge-stack/ksapi';
171
+
172
+ async function example() {
173
+ console.log("🚀 Testing @knowledge-stack/ksapi SDK...");
174
+ const api = new WorkflowRunsApi();
175
+
176
+ const body = {
177
+ // string
178
+ runId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
179
+ // WorkflowRunCallbackRequest
180
+ workflowRunCallbackRequest: ...,
181
+ } satisfies WorkflowRunCallbackOperationRequest;
182
+
183
+ try {
184
+ const data = await api.workflowRunCallback(body);
185
+ console.log(data);
186
+ } catch (error) {
187
+ console.error(error);
188
+ }
189
+ }
190
+
191
+ // Run the test
192
+ example().catch(console.error);
193
+ ```
194
+
195
+ ### Parameters
196
+
197
+
198
+ | Name | Type | Description | Notes |
199
+ |------------- | ------------- | ------------- | -------------|
200
+ | **runId** | `string` | | [Defaults to `undefined`] |
201
+ | **workflowRunCallbackRequest** | [WorkflowRunCallbackRequest](WorkflowRunCallbackRequest.md) | | |
202
+
203
+ ### Return type
204
+
205
+ [**WorkflowCallbackResponse**](WorkflowCallbackResponse.md)
206
+
207
+ ### Authorization
208
+
209
+ No authorization required
210
+
211
+ ### HTTP request headers
212
+
213
+ - **Content-Type**: `application/json`
214
+ - **Accept**: `application/json`
215
+
216
+
217
+ ### HTTP response details
218
+ | Status code | Description | Response headers |
219
+ |-------------|-------------|------------------|
220
+ | **200** | Successful Response | - |
221
+ | **422** | Validation Error | - |
222
+
223
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
224
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knowledge-stack/ksapi",
3
- "version": "1.62.2",
3
+ "version": "1.64.0",
4
4
  "description": "OpenAPI client for @knowledge-stack/ksapi",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {