@knowledge-stack/ksapi 1.104.0 → 1.106.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/.openapi-generator/FILES +2 -0
- package/README.md +4 -3
- package/dist/apis/WorkflowRunsApi.d.ts +15 -12
- package/dist/apis/WorkflowRunsApi.js +4 -2
- package/dist/esm/apis/WorkflowRunsApi.d.ts +15 -12
- package/dist/esm/apis/WorkflowRunsApi.js +5 -3
- package/dist/esm/models/DirectorySyncResponse.d.ts +30 -0
- package/dist/esm/models/DirectorySyncResponse.js +10 -0
- package/dist/esm/models/GroupResponse.d.ts +6 -0
- package/dist/esm/models/GroupResponse.js +2 -0
- package/dist/esm/models/MembershipResponse.d.ts +6 -0
- package/dist/esm/models/MembershipResponse.js +2 -0
- package/dist/esm/models/StartWorkflowRunRequest.d.ts +53 -0
- package/dist/esm/models/StartWorkflowRunRequest.js +46 -0
- package/dist/esm/models/WorkflowRunSnapshot.d.ts +6 -0
- package/dist/esm/models/WorkflowRunSnapshot.js +7 -1
- package/dist/esm/models/index.d.ts +1 -0
- package/dist/esm/models/index.js +1 -0
- package/dist/models/DirectorySyncResponse.d.ts +30 -0
- package/dist/models/DirectorySyncResponse.js +10 -0
- package/dist/models/GroupResponse.d.ts +6 -0
- package/dist/models/GroupResponse.js +2 -0
- package/dist/models/MembershipResponse.d.ts +6 -0
- package/dist/models/MembershipResponse.js +2 -0
- package/dist/models/StartWorkflowRunRequest.d.ts +53 -0
- package/dist/models/StartWorkflowRunRequest.js +54 -0
- package/dist/models/WorkflowRunSnapshot.d.ts +6 -0
- package/dist/models/WorkflowRunSnapshot.js +7 -1
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/docs/DirectorySyncResponse.md +10 -0
- package/docs/GroupResponse.md +2 -0
- package/docs/MembershipResponse.md +2 -0
- package/docs/StartWorkflowRunRequest.md +35 -0
- package/docs/WorkflowRunSnapshot.md +2 -0
- package/docs/WorkflowRunsApi.md +9 -6
- package/package.json +1 -1
- package/src/apis/WorkflowRunsApi.ts +20 -11
- package/src/models/DirectorySyncResponse.ts +40 -0
- package/src/models/GroupResponse.ts +8 -0
- package/src/models/MembershipResponse.ts +8 -0
- package/src/models/StartWorkflowRunRequest.ts +91 -0
- package/src/models/WorkflowRunSnapshot.ts +11 -0
- package/src/models/index.ts +1 -0
|
@@ -0,0 +1,91 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
* Optional JSON body for ``POST /v1/workflow-runs/{id}/start``.
|
|
18
|
+
*
|
|
19
|
+
* The whole body is optional: an absent body starts the run with just
|
|
20
|
+
* the localized "Started workflow: X" opening message, exactly as
|
|
21
|
+
* before. When ``user_message`` is set it is appended to that opening
|
|
22
|
+
* thread message AND injected into the runner's first user turn, so the
|
|
23
|
+
* agent acts on it as guidance layered on the workflow instruction.
|
|
24
|
+
* @export
|
|
25
|
+
* @interface StartWorkflowRunRequest
|
|
26
|
+
*/
|
|
27
|
+
export interface StartWorkflowRunRequest {
|
|
28
|
+
/**
|
|
29
|
+
* Free-text instruction shown in the run thread and passed to the agent as additional guidance on top of the workflow instruction. Optional.
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof StartWorkflowRunRequest
|
|
32
|
+
*/
|
|
33
|
+
userMessage?: string | null;
|
|
34
|
+
}
|
|
35
|
+
export const StartWorkflowRunRequestPropertyValidationAttributesMap: {
|
|
36
|
+
[property: string]: {
|
|
37
|
+
maxLength?: number,
|
|
38
|
+
minLength?: number,
|
|
39
|
+
pattern?: string,
|
|
40
|
+
maximum?: number,
|
|
41
|
+
exclusiveMaximum?: boolean,
|
|
42
|
+
minimum?: number,
|
|
43
|
+
exclusiveMinimum?: boolean,
|
|
44
|
+
multipleOf?: number,
|
|
45
|
+
maxItems?: number,
|
|
46
|
+
minItems?: number,
|
|
47
|
+
uniqueItems?: boolean
|
|
48
|
+
}
|
|
49
|
+
} = {
|
|
50
|
+
userMessage: {
|
|
51
|
+
maxLength: 4000,
|
|
52
|
+
},
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the StartWorkflowRunRequest interface.
|
|
58
|
+
*/
|
|
59
|
+
export function instanceOfStartWorkflowRunRequest(value: object): value is StartWorkflowRunRequest {
|
|
60
|
+
return true;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function StartWorkflowRunRequestFromJSON(json: any): StartWorkflowRunRequest {
|
|
64
|
+
return StartWorkflowRunRequestFromJSONTyped(json, false);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function StartWorkflowRunRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): StartWorkflowRunRequest {
|
|
68
|
+
if (json == null) {
|
|
69
|
+
return json;
|
|
70
|
+
}
|
|
71
|
+
return {
|
|
72
|
+
|
|
73
|
+
'userMessage': json['user_message'] == null ? undefined : json['user_message'],
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function StartWorkflowRunRequestToJSON(json: any): StartWorkflowRunRequest {
|
|
78
|
+
return StartWorkflowRunRequestToJSONTyped(json, false);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export function StartWorkflowRunRequestToJSONTyped(value?: StartWorkflowRunRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
82
|
+
if (value == null) {
|
|
83
|
+
return value;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
return {
|
|
87
|
+
|
|
88
|
+
'user_message': value['userMessage'],
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
|
|
@@ -66,6 +66,12 @@ export interface WorkflowRunSnapshot {
|
|
|
66
66
|
* @memberof WorkflowRunSnapshot
|
|
67
67
|
*/
|
|
68
68
|
inputs: Array<InputSnapshot>;
|
|
69
|
+
/**
|
|
70
|
+
* Optional free-text message the caller supplied at Start. Pinned here so the runner injects it into the agent's first user turn and it survives retry, redrive, and workflow-thread follow-ups (all of which re-assemble the prompt from this snapshot).
|
|
71
|
+
* @type {string}
|
|
72
|
+
* @memberof WorkflowRunSnapshot
|
|
73
|
+
*/
|
|
74
|
+
userMessage?: string | null;
|
|
69
75
|
}
|
|
70
76
|
export const WorkflowRunSnapshotPropertyValidationAttributesMap: {
|
|
71
77
|
[property: string]: {
|
|
@@ -82,6 +88,9 @@ export const WorkflowRunSnapshotPropertyValidationAttributesMap: {
|
|
|
82
88
|
uniqueItems?: boolean
|
|
83
89
|
}
|
|
84
90
|
} = {
|
|
91
|
+
userMessage: {
|
|
92
|
+
maxLength: 4000,
|
|
93
|
+
},
|
|
85
94
|
}
|
|
86
95
|
|
|
87
96
|
|
|
@@ -110,6 +119,7 @@ export function WorkflowRunSnapshotFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
110
119
|
'maxRunDurationSeconds': json['max_run_duration_seconds'],
|
|
111
120
|
'instruction': InstructionSnapshotFromJSON(json['instruction']),
|
|
112
121
|
'inputs': ((json['inputs'] as Array<any>).map(InputSnapshotFromJSON)),
|
|
122
|
+
'userMessage': json['user_message'] == null ? undefined : json['user_message'],
|
|
113
123
|
};
|
|
114
124
|
}
|
|
115
125
|
|
|
@@ -128,6 +138,7 @@ export function WorkflowRunSnapshotToJSONTyped(value?: WorkflowRunSnapshot | nul
|
|
|
128
138
|
'max_run_duration_seconds': value['maxRunDurationSeconds'],
|
|
129
139
|
'instruction': InstructionSnapshotToJSON(value['instruction']),
|
|
130
140
|
'inputs': ((value['inputs'] as Array<any>).map(InputSnapshotToJSON)),
|
|
141
|
+
'user_message': value['userMessage'],
|
|
131
142
|
};
|
|
132
143
|
}
|
|
133
144
|
|
package/src/models/index.ts
CHANGED
|
@@ -213,6 +213,7 @@ export * from './SetApprovalStateRequest';
|
|
|
213
213
|
export * from './SetWorkflowRunApprovalRequest';
|
|
214
214
|
export * from './SignInRequest';
|
|
215
215
|
export * from './SortDirection';
|
|
216
|
+
export * from './StartWorkflowRunRequest';
|
|
216
217
|
export * from './StepInput';
|
|
217
218
|
export * from './StepKind';
|
|
218
219
|
export * from './StepOutput';
|