@knowledge-stack/ksapi 1.115.2 → 1.117.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.
- package/README.md +2 -2
- package/dist/apis/WorkflowDefinitionsApi.d.ts +3 -0
- package/dist/apis/WorkflowDefinitionsApi.js +3 -0
- package/dist/esm/apis/WorkflowDefinitionsApi.d.ts +3 -0
- package/dist/esm/apis/WorkflowDefinitionsApi.js +3 -0
- package/docs/WorkflowDefinitionsApi.md +4 -1
- package/package.json +1 -1
- package/src/apis/WorkflowDefinitionsApi.ts +7 -0
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @knowledge-stack/ksapi@1.
|
|
1
|
+
# @knowledge-stack/ksapi@1.117.0
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the localhost API.
|
|
4
4
|
|
|
@@ -583,7 +583,7 @@ and is automatically generated by the
|
|
|
583
583
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
584
584
|
|
|
585
585
|
- API version: `0.1.0`
|
|
586
|
-
- Package version: `1.
|
|
586
|
+
- Package version: `1.117.0`
|
|
587
587
|
- Generator version: `7.21.0`
|
|
588
588
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
589
589
|
|
|
@@ -21,6 +21,7 @@ export interface CreateWorkflowRunRequest {
|
|
|
21
21
|
idempotencyKey?: string | null;
|
|
22
22
|
autoStart?: boolean;
|
|
23
23
|
userMessage?: string | null;
|
|
24
|
+
name?: string | null;
|
|
24
25
|
}
|
|
25
26
|
export interface DeleteWorkflowDefinitionRequest {
|
|
26
27
|
definitionId: string;
|
|
@@ -94,6 +95,7 @@ export interface WorkflowDefinitionsApiInterface {
|
|
|
94
95
|
* @param {string} [idempotencyKey] Optional key to prevent duplicate runs from retries.
|
|
95
96
|
* @param {boolean} [autoStart] When true, the run starts itself once its ``inputs/`` uploads finish ingesting — eliminating the separate Start call. If an upload\\\'s ingestion fails, the run is marked FAILED. Default false (two-step flow). Arm only after all uploads are queued; a synchronously-completing first upload would otherwise start the run before later uploads are added.
|
|
96
97
|
* @param {string} [userMessage] Optional note carried to the auto-start dispatch (the equivalent of the Start endpoint\\\'s ``user_message`` for a self-starting run). Applied only when ``auto_start`` fires.
|
|
98
|
+
* @param {string} [name] Optional display name for the run. Omit to default to the run\\\'s UUID; rename later via PATCH. Must be unique among sibling runs under this definition\\\'s ``runs/`` folder — a collision returns 409.
|
|
97
99
|
* @throws {RequiredError}
|
|
98
100
|
* @memberof WorkflowDefinitionsApiInterface
|
|
99
101
|
*/
|
|
@@ -107,6 +109,7 @@ export interface WorkflowDefinitionsApiInterface {
|
|
|
107
109
|
* @param {string} [idempotencyKey] Optional key to prevent duplicate runs from retries.
|
|
108
110
|
* @param {boolean} [autoStart] When true, the run starts itself once its ``inputs/`` uploads finish ingesting — eliminating the separate Start call. If an upload\\\'s ingestion fails, the run is marked FAILED. Default false (two-step flow). Arm only after all uploads are queued; a synchronously-completing first upload would otherwise start the run before later uploads are added.
|
|
109
111
|
* @param {string} [userMessage] Optional note carried to the auto-start dispatch (the equivalent of the Start endpoint\\\'s ``user_message`` for a self-starting run). Applied only when ``auto_start`` fires.
|
|
112
|
+
* @param {string} [name] Optional display name for the run. Omit to default to the run\\\'s UUID; rename later via PATCH. Must be unique among sibling runs under this definition\\\'s ``runs/`` folder — a collision returns 409.
|
|
110
113
|
* @param {*} [options] Override http request option.
|
|
111
114
|
* @throws {RequiredError}
|
|
112
115
|
* @memberof WorkflowDefinitionsApiInterface
|
|
@@ -158,6 +158,9 @@ class WorkflowDefinitionsApi extends runtime.BaseAPI {
|
|
|
158
158
|
if (requestParameters['userMessage'] != null) {
|
|
159
159
|
formParams.append('user_message', requestParameters['userMessage']);
|
|
160
160
|
}
|
|
161
|
+
if (requestParameters['name'] != null) {
|
|
162
|
+
formParams.append('name', requestParameters['name']);
|
|
163
|
+
}
|
|
161
164
|
let urlPath = `/v1/workflow-definitions/{definition_id}/runs`;
|
|
162
165
|
urlPath = urlPath.replace(`{${"definition_id"}}`, encodeURIComponent(String(requestParameters['definitionId'])));
|
|
163
166
|
return {
|
|
@@ -21,6 +21,7 @@ export interface CreateWorkflowRunRequest {
|
|
|
21
21
|
idempotencyKey?: string | null;
|
|
22
22
|
autoStart?: boolean;
|
|
23
23
|
userMessage?: string | null;
|
|
24
|
+
name?: string | null;
|
|
24
25
|
}
|
|
25
26
|
export interface DeleteWorkflowDefinitionRequest {
|
|
26
27
|
definitionId: string;
|
|
@@ -94,6 +95,7 @@ export interface WorkflowDefinitionsApiInterface {
|
|
|
94
95
|
* @param {string} [idempotencyKey] Optional key to prevent duplicate runs from retries.
|
|
95
96
|
* @param {boolean} [autoStart] When true, the run starts itself once its ``inputs/`` uploads finish ingesting — eliminating the separate Start call. If an upload\\\'s ingestion fails, the run is marked FAILED. Default false (two-step flow). Arm only after all uploads are queued; a synchronously-completing first upload would otherwise start the run before later uploads are added.
|
|
96
97
|
* @param {string} [userMessage] Optional note carried to the auto-start dispatch (the equivalent of the Start endpoint\\\'s ``user_message`` for a self-starting run). Applied only when ``auto_start`` fires.
|
|
98
|
+
* @param {string} [name] Optional display name for the run. Omit to default to the run\\\'s UUID; rename later via PATCH. Must be unique among sibling runs under this definition\\\'s ``runs/`` folder — a collision returns 409.
|
|
97
99
|
* @throws {RequiredError}
|
|
98
100
|
* @memberof WorkflowDefinitionsApiInterface
|
|
99
101
|
*/
|
|
@@ -107,6 +109,7 @@ export interface WorkflowDefinitionsApiInterface {
|
|
|
107
109
|
* @param {string} [idempotencyKey] Optional key to prevent duplicate runs from retries.
|
|
108
110
|
* @param {boolean} [autoStart] When true, the run starts itself once its ``inputs/`` uploads finish ingesting — eliminating the separate Start call. If an upload\\\'s ingestion fails, the run is marked FAILED. Default false (two-step flow). Arm only after all uploads are queued; a synchronously-completing first upload would otherwise start the run before later uploads are added.
|
|
109
111
|
* @param {string} [userMessage] Optional note carried to the auto-start dispatch (the equivalent of the Start endpoint\\\'s ``user_message`` for a self-starting run). Applied only when ``auto_start`` fires.
|
|
112
|
+
* @param {string} [name] Optional display name for the run. Omit to default to the run\\\'s UUID; rename later via PATCH. Must be unique among sibling runs under this definition\\\'s ``runs/`` folder — a collision returns 409.
|
|
110
113
|
* @param {*} [options] Override http request option.
|
|
111
114
|
* @throws {RequiredError}
|
|
112
115
|
* @memberof WorkflowDefinitionsApiInterface
|
|
@@ -122,6 +122,9 @@ export class WorkflowDefinitionsApi extends runtime.BaseAPI {
|
|
|
122
122
|
if (requestParameters['userMessage'] != null) {
|
|
123
123
|
formParams.append('user_message', requestParameters['userMessage']);
|
|
124
124
|
}
|
|
125
|
+
if (requestParameters['name'] != null) {
|
|
126
|
+
formParams.append('name', requestParameters['name']);
|
|
127
|
+
}
|
|
125
128
|
let urlPath = `/v1/workflow-definitions/{definition_id}/runs`;
|
|
126
129
|
urlPath = urlPath.replace(`{${"definition_id"}}`, encodeURIComponent(String(requestParameters['definitionId'])));
|
|
127
130
|
return {
|
|
@@ -90,7 +90,7 @@ example().catch(console.error);
|
|
|
90
90
|
|
|
91
91
|
## createWorkflowRun
|
|
92
92
|
|
|
93
|
-
> WorkflowRunResponse createWorkflowRun(definitionId, files, inputScope, idempotencyKey, autoStart, userMessage)
|
|
93
|
+
> WorkflowRunResponse createWorkflowRun(definitionId, files, inputScope, idempotencyKey, autoStart, userMessage, name)
|
|
94
94
|
|
|
95
95
|
Create Workflow Run Handler
|
|
96
96
|
|
|
@@ -128,6 +128,8 @@ async function example() {
|
|
|
128
128
|
autoStart: true,
|
|
129
129
|
// string | Optional note carried to the auto-start dispatch (the equivalent of the Start endpoint\\\'s ``user_message`` for a self-starting run). Applied only when ``auto_start`` fires. (optional)
|
|
130
130
|
userMessage: userMessage_example,
|
|
131
|
+
// string | Optional display name for the run. Omit to default to the run\\\'s UUID; rename later via PATCH. Must be unique among sibling runs under this definition\\\'s ``runs/`` folder — a collision returns 409. (optional)
|
|
132
|
+
name: name_example,
|
|
131
133
|
} satisfies CreateWorkflowRunRequest;
|
|
132
134
|
|
|
133
135
|
try {
|
|
@@ -153,6 +155,7 @@ example().catch(console.error);
|
|
|
153
155
|
| **idempotencyKey** | `string` | Optional key to prevent duplicate runs from retries. | [Optional] [Defaults to `undefined`] |
|
|
154
156
|
| **autoStart** | `boolean` | When true, the run starts itself once its ``inputs/`` uploads finish ingesting — eliminating the separate Start call. If an upload\\\'s ingestion fails, the run is marked FAILED. Default false (two-step flow). Arm only after all uploads are queued; a synchronously-completing first upload would otherwise start the run before later uploads are added. | [Optional] [Defaults to `false`] |
|
|
155
157
|
| **userMessage** | `string` | Optional note carried to the auto-start dispatch (the equivalent of the Start endpoint\\\'s ``user_message`` for a self-starting run). Applied only when ``auto_start`` fires. | [Optional] [Defaults to `undefined`] |
|
|
158
|
+
| **name** | `string` | Optional display name for the run. Omit to default to the run\\\'s UUID; rename later via PATCH. Must be unique among sibling runs under this definition\\\'s ``runs/`` folder — a collision returns 409. | [Optional] [Defaults to `undefined`] |
|
|
156
159
|
|
|
157
160
|
### Return type
|
|
158
161
|
|
package/package.json
CHANGED
|
@@ -66,6 +66,7 @@ export interface CreateWorkflowRunRequest {
|
|
|
66
66
|
idempotencyKey?: string | null;
|
|
67
67
|
autoStart?: boolean;
|
|
68
68
|
userMessage?: string | null;
|
|
69
|
+
name?: string | null;
|
|
69
70
|
}
|
|
70
71
|
|
|
71
72
|
export interface DeleteWorkflowDefinitionRequest {
|
|
@@ -149,6 +150,7 @@ export interface WorkflowDefinitionsApiInterface {
|
|
|
149
150
|
* @param {string} [idempotencyKey] Optional key to prevent duplicate runs from retries.
|
|
150
151
|
* @param {boolean} [autoStart] When true, the run starts itself once its ``inputs/`` uploads finish ingesting — eliminating the separate Start call. If an upload\\\'s ingestion fails, the run is marked FAILED. Default false (two-step flow). Arm only after all uploads are queued; a synchronously-completing first upload would otherwise start the run before later uploads are added.
|
|
151
152
|
* @param {string} [userMessage] Optional note carried to the auto-start dispatch (the equivalent of the Start endpoint\\\'s ``user_message`` for a self-starting run). Applied only when ``auto_start`` fires.
|
|
153
|
+
* @param {string} [name] Optional display name for the run. Omit to default to the run\\\'s UUID; rename later via PATCH. Must be unique among sibling runs under this definition\\\'s ``runs/`` folder — a collision returns 409.
|
|
152
154
|
* @throws {RequiredError}
|
|
153
155
|
* @memberof WorkflowDefinitionsApiInterface
|
|
154
156
|
*/
|
|
@@ -163,6 +165,7 @@ export interface WorkflowDefinitionsApiInterface {
|
|
|
163
165
|
* @param {string} [idempotencyKey] Optional key to prevent duplicate runs from retries.
|
|
164
166
|
* @param {boolean} [autoStart] When true, the run starts itself once its ``inputs/`` uploads finish ingesting — eliminating the separate Start call. If an upload\\\'s ingestion fails, the run is marked FAILED. Default false (two-step flow). Arm only after all uploads are queued; a synchronously-completing first upload would otherwise start the run before later uploads are added.
|
|
165
167
|
* @param {string} [userMessage] Optional note carried to the auto-start dispatch (the equivalent of the Start endpoint\\\'s ``user_message`` for a self-starting run). Applied only when ``auto_start`` fires.
|
|
168
|
+
* @param {string} [name] Optional display name for the run. Omit to default to the run\\\'s UUID; rename later via PATCH. Must be unique among sibling runs under this definition\\\'s ``runs/`` folder — a collision returns 409.
|
|
166
169
|
* @param {*} [options] Override http request option.
|
|
167
170
|
* @throws {RequiredError}
|
|
168
171
|
* @memberof WorkflowDefinitionsApiInterface
|
|
@@ -475,6 +478,10 @@ export class WorkflowDefinitionsApi extends runtime.BaseAPI implements WorkflowD
|
|
|
475
478
|
formParams.append('user_message', requestParameters['userMessage'] as any);
|
|
476
479
|
}
|
|
477
480
|
|
|
481
|
+
if (requestParameters['name'] != null) {
|
|
482
|
+
formParams.append('name', requestParameters['name'] as any);
|
|
483
|
+
}
|
|
484
|
+
|
|
478
485
|
|
|
479
486
|
let urlPath = `/v1/workflow-definitions/{definition_id}/runs`;
|
|
480
487
|
urlPath = urlPath.replace(`{${"definition_id"}}`, encodeURIComponent(String(requestParameters['definitionId'])));
|