@next-bricks/ai-portal 0.60.2 → 0.60.3

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.
@@ -165,8 +165,46 @@ export interface ConversationError {
165
165
  taskId?: string;
166
166
  error?: string;
167
167
  }
168
- export type CommandPayload = CommandPayloadServiceFlowStarting;
169
- export interface CommandPayloadServiceFlowStarting {
168
+ export type CommandPayload = CommandPayloadServiceFlowStart | CommandPayloadServiceFlowCreate | CommandPayloadServiceFlowEdit | CommandPayloadGoalPlan | LegacyCommandPayloadServiceFlowStarting;
169
+ export interface BaseCommandPayload {
170
+ type: string;
171
+ payload?: unknown;
172
+ }
173
+ export interface CommandPayloadServiceFlowStart extends BaseCommandPayload {
174
+ type: "serviceflow-start";
175
+ payload: {
176
+ spaceInstanceId: string;
177
+ spaceName?: string;
178
+ flowInstanceId?: string;
179
+ flowName?: string;
180
+ };
181
+ }
182
+ export interface CommandPayloadServiceFlowCreate extends BaseCommandPayload {
183
+ type: "serviceflow-create";
184
+ payload: {
185
+ spaceInstanceId: string;
186
+ spaceName?: string;
187
+ };
188
+ }
189
+ export interface CommandPayloadServiceFlowEdit extends BaseCommandPayload {
190
+ type: "serviceflow-edit";
191
+ payload: {
192
+ spaceInstanceId: string;
193
+ spaceName?: string;
194
+ flowInstanceId: string;
195
+ flowName?: string;
196
+ };
197
+ }
198
+ export interface CommandPayloadGoalPlan extends BaseCommandPayload {
199
+ type: "goal-plan";
200
+ payload: {
201
+ goalId: string;
202
+ goalName?: string;
203
+ description?: string;
204
+ };
205
+ }
206
+ /** @deprecated Use `payload` instead */
207
+ export interface LegacyCommandPayloadServiceFlowStarting {
170
208
  type: "serviceFlowStarting";
171
209
  serviceFlowStarting: {
172
210
  spaceInstanceId: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@next-bricks/ai-portal",
3
- "version": "0.60.2",
3
+ "version": "0.60.3",
4
4
  "homepage": "https://github.com/easyops-cn/next-advanced-bricks/tree/master/bricks/ai-portal",
5
5
  "repository": {
6
6
  "type": "git",
@@ -49,5 +49,5 @@
49
49
  "@next-bricks/presentational": "*",
50
50
  "@next-bricks/vs": "*"
51
51
  },
52
- "gitHead": "53186cc54c9c1599b8677eedd6ea0825310bbe37"
52
+ "gitHead": "d3542d1e1dcffba3e041e88d9b9c398f8c782ad7"
53
53
  }