weave-typescript 0.45.0 → 0.47.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/dist/weaveapi/agent/v1/agent.pb.d.ts +14 -14
- package/dist/weaveapi/agent/v1/agent.pb.js +88 -88
- package/dist/weaveapi/agent/v1/service.pb.d.ts +53 -53
- package/dist/weaveapi/agent/v1/service.pb.js +264 -250
- package/dist/weaveapi/chat/v1/chat.pb.d.ts +71 -0
- package/dist/weaveapi/chat/v1/chat.pb.js +880 -1
- package/dist/weaveapi/workflow/v1/service.pb.d.ts +55 -55
- package/dist/weaveapi/workflow/v1/service.pb.js +282 -268
- package/dist/weaveapi/workflow/v1/workflow.pb.d.ts +18 -18
- package/dist/weaveapi/workflow/v1/workflow.pb.js +111 -111
- package/dist/weavesql/weavedb/agent_sql.d.ts +83 -83
- package/dist/weavesql/weavedb/agent_sql.js +110 -110
- package/dist/weavesql/weavedb/workflow_sql.d.ts +93 -93
- package/dist/weavesql/weavedb/workflow_sql.js +120 -120
- package/package.json +1 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
2
|
import { Observable } from "rxjs";
|
|
3
|
-
import { WorkflowDefinition, WorkflowDraft, WorkflowPublishPlan, WorkflowRun, WorkflowRunEvent, WorkflowRunStatus, WorkflowStepRun,
|
|
3
|
+
import { WorkflowDefinition, WorkflowDefinitionStatus, WorkflowDraft, WorkflowGraph, WorkflowPublishPlan, WorkflowRun, WorkflowRunEvent, WorkflowRunStatus, WorkflowStepRun, WorkflowVersion } from "./workflow.pb";
|
|
4
4
|
export declare const protobufPackage = "weaveapi.workflow.v1";
|
|
5
|
-
export interface
|
|
5
|
+
export interface CreateWorkflowDefinitionRequest {
|
|
6
6
|
organizationId: string;
|
|
7
7
|
slug: string;
|
|
8
8
|
name: string;
|
|
9
9
|
description: string;
|
|
10
|
-
|
|
10
|
+
graph: WorkflowGraph | undefined;
|
|
11
11
|
inputSchema: {
|
|
12
12
|
[key: string]: any;
|
|
13
13
|
} | undefined;
|
|
@@ -18,36 +18,36 @@ export interface CreateWorkflowTemplateRequest {
|
|
|
18
18
|
[key: string]: any;
|
|
19
19
|
} | undefined;
|
|
20
20
|
}
|
|
21
|
-
export interface
|
|
22
|
-
|
|
21
|
+
export interface CreateWorkflowDefinitionResponse {
|
|
22
|
+
definition: WorkflowDefinition | undefined;
|
|
23
23
|
draft: WorkflowDraft | undefined;
|
|
24
24
|
}
|
|
25
|
-
export interface
|
|
25
|
+
export interface GetWorkflowDefinitionRequest {
|
|
26
26
|
organizationId: string;
|
|
27
|
-
|
|
27
|
+
workflowDefinitionId: string;
|
|
28
28
|
}
|
|
29
|
-
export interface
|
|
30
|
-
|
|
29
|
+
export interface GetWorkflowDefinitionResponse {
|
|
30
|
+
definition: WorkflowDefinition | undefined;
|
|
31
31
|
draft: WorkflowDraft | undefined;
|
|
32
32
|
latestVersion: WorkflowVersion | undefined;
|
|
33
33
|
}
|
|
34
|
-
export interface
|
|
34
|
+
export interface ListWorkflowDefinitionsRequest {
|
|
35
35
|
organizationId: string;
|
|
36
|
-
status:
|
|
36
|
+
status: WorkflowDefinitionStatus;
|
|
37
37
|
pageSize: number;
|
|
38
38
|
pageToken: string;
|
|
39
39
|
}
|
|
40
|
-
export interface
|
|
41
|
-
|
|
40
|
+
export interface ListWorkflowDefinitionsResponse {
|
|
41
|
+
definitions: WorkflowDefinition[];
|
|
42
42
|
nextPageToken: string;
|
|
43
43
|
}
|
|
44
44
|
export interface UpdateWorkflowDraftRequest {
|
|
45
45
|
organizationId: string;
|
|
46
|
-
|
|
46
|
+
workflowDefinitionId: string;
|
|
47
47
|
expectedRevision: number;
|
|
48
48
|
name: string;
|
|
49
49
|
description: string;
|
|
50
|
-
|
|
50
|
+
graph: WorkflowGraph | undefined;
|
|
51
51
|
inputSchema: {
|
|
52
52
|
[key: string]: any;
|
|
53
53
|
} | undefined;
|
|
@@ -66,23 +66,23 @@ export interface UpdateWorkflowDraftResponse {
|
|
|
66
66
|
}
|
|
67
67
|
export interface PlanWorkflowPublishRequest {
|
|
68
68
|
organizationId: string;
|
|
69
|
-
|
|
69
|
+
workflowDefinitionId: string;
|
|
70
70
|
draftRevision: number;
|
|
71
71
|
}
|
|
72
72
|
export interface PlanWorkflowPublishResponse {
|
|
73
73
|
plan: WorkflowPublishPlan | undefined;
|
|
74
74
|
}
|
|
75
|
-
export interface
|
|
75
|
+
export interface PublishWorkflowDefinitionRequest {
|
|
76
76
|
organizationId: string;
|
|
77
|
-
|
|
77
|
+
workflowDefinitionId: string;
|
|
78
78
|
draftRevision: number;
|
|
79
79
|
}
|
|
80
|
-
export interface
|
|
80
|
+
export interface PublishWorkflowDefinitionResponse {
|
|
81
81
|
version: WorkflowVersion | undefined;
|
|
82
82
|
}
|
|
83
83
|
export interface GetWorkflowVersionRequest {
|
|
84
84
|
organizationId: string;
|
|
85
|
-
|
|
85
|
+
workflowDefinitionId: string;
|
|
86
86
|
version: number;
|
|
87
87
|
}
|
|
88
88
|
export interface GetWorkflowVersionResponse {
|
|
@@ -90,7 +90,7 @@ export interface GetWorkflowVersionResponse {
|
|
|
90
90
|
}
|
|
91
91
|
export interface ListWorkflowVersionsRequest {
|
|
92
92
|
organizationId: string;
|
|
93
|
-
|
|
93
|
+
workflowDefinitionId: string;
|
|
94
94
|
pageSize: number;
|
|
95
95
|
pageToken: string;
|
|
96
96
|
}
|
|
@@ -100,7 +100,7 @@ export interface ListWorkflowVersionsResponse {
|
|
|
100
100
|
}
|
|
101
101
|
export interface RunWorkflowRequest {
|
|
102
102
|
organizationId: string;
|
|
103
|
-
|
|
103
|
+
workflowDefinitionId: string;
|
|
104
104
|
version: number;
|
|
105
105
|
chatSessionId: string;
|
|
106
106
|
input: {
|
|
@@ -120,7 +120,7 @@ export interface GetWorkflowRunResponse {
|
|
|
120
120
|
}
|
|
121
121
|
export interface ListWorkflowRunsRequest {
|
|
122
122
|
organizationId: string;
|
|
123
|
-
|
|
123
|
+
workflowDefinitionId: string;
|
|
124
124
|
status: WorkflowRunStatus;
|
|
125
125
|
pageSize: number;
|
|
126
126
|
pageToken: string;
|
|
@@ -137,18 +137,18 @@ export interface WatchWorkflowRunEventsRequest {
|
|
|
137
137
|
export interface WatchWorkflowRunEventsResponse {
|
|
138
138
|
event: WorkflowRunEvent | undefined;
|
|
139
139
|
}
|
|
140
|
-
export declare const
|
|
141
|
-
export declare const
|
|
142
|
-
export declare const
|
|
143
|
-
export declare const
|
|
144
|
-
export declare const
|
|
145
|
-
export declare const
|
|
140
|
+
export declare const CreateWorkflowDefinitionRequest: MessageFns<CreateWorkflowDefinitionRequest>;
|
|
141
|
+
export declare const CreateWorkflowDefinitionResponse: MessageFns<CreateWorkflowDefinitionResponse>;
|
|
142
|
+
export declare const GetWorkflowDefinitionRequest: MessageFns<GetWorkflowDefinitionRequest>;
|
|
143
|
+
export declare const GetWorkflowDefinitionResponse: MessageFns<GetWorkflowDefinitionResponse>;
|
|
144
|
+
export declare const ListWorkflowDefinitionsRequest: MessageFns<ListWorkflowDefinitionsRequest>;
|
|
145
|
+
export declare const ListWorkflowDefinitionsResponse: MessageFns<ListWorkflowDefinitionsResponse>;
|
|
146
146
|
export declare const UpdateWorkflowDraftRequest: MessageFns<UpdateWorkflowDraftRequest>;
|
|
147
147
|
export declare const UpdateWorkflowDraftResponse: MessageFns<UpdateWorkflowDraftResponse>;
|
|
148
148
|
export declare const PlanWorkflowPublishRequest: MessageFns<PlanWorkflowPublishRequest>;
|
|
149
149
|
export declare const PlanWorkflowPublishResponse: MessageFns<PlanWorkflowPublishResponse>;
|
|
150
|
-
export declare const
|
|
151
|
-
export declare const
|
|
150
|
+
export declare const PublishWorkflowDefinitionRequest: MessageFns<PublishWorkflowDefinitionRequest>;
|
|
151
|
+
export declare const PublishWorkflowDefinitionResponse: MessageFns<PublishWorkflowDefinitionResponse>;
|
|
152
152
|
export declare const GetWorkflowVersionRequest: MessageFns<GetWorkflowVersionRequest>;
|
|
153
153
|
export declare const GetWorkflowVersionResponse: MessageFns<GetWorkflowVersionResponse>;
|
|
154
154
|
export declare const ListWorkflowVersionsRequest: MessageFns<ListWorkflowVersionsRequest>;
|
|
@@ -162,12 +162,12 @@ export declare const ListWorkflowRunsResponse: MessageFns<ListWorkflowRunsRespon
|
|
|
162
162
|
export declare const WatchWorkflowRunEventsRequest: MessageFns<WatchWorkflowRunEventsRequest>;
|
|
163
163
|
export declare const WatchWorkflowRunEventsResponse: MessageFns<WatchWorkflowRunEventsResponse>;
|
|
164
164
|
export interface WorkflowService {
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
165
|
+
CreateWorkflowDefinition(request: CreateWorkflowDefinitionRequest): Promise<CreateWorkflowDefinitionResponse>;
|
|
166
|
+
GetWorkflowDefinition(request: GetWorkflowDefinitionRequest): Promise<GetWorkflowDefinitionResponse>;
|
|
167
|
+
ListWorkflowDefinitions(request: ListWorkflowDefinitionsRequest): Promise<ListWorkflowDefinitionsResponse>;
|
|
168
168
|
UpdateWorkflowDraft(request: UpdateWorkflowDraftRequest): Promise<UpdateWorkflowDraftResponse>;
|
|
169
169
|
PlanWorkflowPublish(request: PlanWorkflowPublishRequest): Promise<PlanWorkflowPublishResponse>;
|
|
170
|
-
|
|
170
|
+
PublishWorkflowDefinition(request: PublishWorkflowDefinitionRequest): Promise<PublishWorkflowDefinitionResponse>;
|
|
171
171
|
GetWorkflowVersion(request: GetWorkflowVersionRequest): Promise<GetWorkflowVersionResponse>;
|
|
172
172
|
ListWorkflowVersions(request: ListWorkflowVersionsRequest): Promise<ListWorkflowVersionsResponse>;
|
|
173
173
|
RunWorkflow(request: RunWorkflowRequest): Promise<RunWorkflowResponse>;
|
|
@@ -182,12 +182,12 @@ export declare class WorkflowServiceClientImpl implements WorkflowService {
|
|
|
182
182
|
constructor(rpc: Rpc, opts?: {
|
|
183
183
|
service?: string;
|
|
184
184
|
});
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
185
|
+
CreateWorkflowDefinition(request: CreateWorkflowDefinitionRequest): Promise<CreateWorkflowDefinitionResponse>;
|
|
186
|
+
GetWorkflowDefinition(request: GetWorkflowDefinitionRequest): Promise<GetWorkflowDefinitionResponse>;
|
|
187
|
+
ListWorkflowDefinitions(request: ListWorkflowDefinitionsRequest): Promise<ListWorkflowDefinitionsResponse>;
|
|
188
188
|
UpdateWorkflowDraft(request: UpdateWorkflowDraftRequest): Promise<UpdateWorkflowDraftResponse>;
|
|
189
189
|
PlanWorkflowPublish(request: PlanWorkflowPublishRequest): Promise<PlanWorkflowPublishResponse>;
|
|
190
|
-
|
|
190
|
+
PublishWorkflowDefinition(request: PublishWorkflowDefinitionRequest): Promise<PublishWorkflowDefinitionResponse>;
|
|
191
191
|
GetWorkflowVersion(request: GetWorkflowVersionRequest): Promise<GetWorkflowVersionResponse>;
|
|
192
192
|
ListWorkflowVersions(request: ListWorkflowVersionsRequest): Promise<ListWorkflowVersionsResponse>;
|
|
193
193
|
RunWorkflow(request: RunWorkflowRequest): Promise<RunWorkflowResponse>;
|
|
@@ -200,11 +200,11 @@ export declare const WorkflowServiceDefinition: {
|
|
|
200
200
|
readonly name: "WorkflowService";
|
|
201
201
|
readonly fullName: "weaveapi.workflow.v1.WorkflowService";
|
|
202
202
|
readonly methods: {
|
|
203
|
-
readonly
|
|
204
|
-
readonly name: "
|
|
205
|
-
readonly requestType: typeof
|
|
203
|
+
readonly createWorkflowDefinition: {
|
|
204
|
+
readonly name: "CreateWorkflowDefinition";
|
|
205
|
+
readonly requestType: typeof CreateWorkflowDefinitionRequest;
|
|
206
206
|
readonly requestStream: false;
|
|
207
|
-
readonly responseType: typeof
|
|
207
|
+
readonly responseType: typeof CreateWorkflowDefinitionResponse;
|
|
208
208
|
readonly responseStream: false;
|
|
209
209
|
readonly options: {
|
|
210
210
|
readonly _unknownFields: {
|
|
@@ -212,11 +212,11 @@ export declare const WorkflowServiceDefinition: {
|
|
|
212
212
|
};
|
|
213
213
|
};
|
|
214
214
|
};
|
|
215
|
-
readonly
|
|
216
|
-
readonly name: "
|
|
217
|
-
readonly requestType: typeof
|
|
215
|
+
readonly getWorkflowDefinition: {
|
|
216
|
+
readonly name: "GetWorkflowDefinition";
|
|
217
|
+
readonly requestType: typeof GetWorkflowDefinitionRequest;
|
|
218
218
|
readonly requestStream: false;
|
|
219
|
-
readonly responseType: typeof
|
|
219
|
+
readonly responseType: typeof GetWorkflowDefinitionResponse;
|
|
220
220
|
readonly responseStream: false;
|
|
221
221
|
readonly options: {
|
|
222
222
|
readonly _unknownFields: {
|
|
@@ -224,11 +224,11 @@ export declare const WorkflowServiceDefinition: {
|
|
|
224
224
|
};
|
|
225
225
|
};
|
|
226
226
|
};
|
|
227
|
-
readonly
|
|
228
|
-
readonly name: "
|
|
229
|
-
readonly requestType: typeof
|
|
227
|
+
readonly listWorkflowDefinitions: {
|
|
228
|
+
readonly name: "ListWorkflowDefinitions";
|
|
229
|
+
readonly requestType: typeof ListWorkflowDefinitionsRequest;
|
|
230
230
|
readonly requestStream: false;
|
|
231
|
-
readonly responseType: typeof
|
|
231
|
+
readonly responseType: typeof ListWorkflowDefinitionsResponse;
|
|
232
232
|
readonly responseStream: false;
|
|
233
233
|
readonly options: {
|
|
234
234
|
readonly _unknownFields: {
|
|
@@ -260,11 +260,11 @@ export declare const WorkflowServiceDefinition: {
|
|
|
260
260
|
};
|
|
261
261
|
};
|
|
262
262
|
};
|
|
263
|
-
readonly
|
|
264
|
-
readonly name: "
|
|
265
|
-
readonly requestType: typeof
|
|
263
|
+
readonly publishWorkflowDefinition: {
|
|
264
|
+
readonly name: "PublishWorkflowDefinition";
|
|
265
|
+
readonly requestType: typeof PublishWorkflowDefinitionRequest;
|
|
266
266
|
readonly requestStream: false;
|
|
267
|
-
readonly responseType: typeof
|
|
267
|
+
readonly responseType: typeof PublishWorkflowDefinitionResponse;
|
|
268
268
|
readonly responseStream: false;
|
|
269
269
|
readonly options: {
|
|
270
270
|
readonly _unknownFields: {
|