weave-typescript 0.43.0 → 0.44.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 +225 -0
- package/dist/weaveapi/agent/v1/agent.pb.js +2389 -0
- package/dist/weaveapi/agent/v1/service.pb.d.ts +374 -0
- package/dist/weaveapi/agent/v1/service.pb.js +2939 -0
- package/dist/weaveapi/workflow/v1/service.pb.d.ts +369 -0
- package/dist/weaveapi/workflow/v1/service.pb.js +2933 -0
- package/dist/weaveapi/workflow/v1/workflow.pb.d.ts +297 -0
- package/dist/weaveapi/workflow/v1/workflow.pb.js +3226 -0
- package/dist/weavesql/weavedb/agent_sql.d.ts +541 -0
- package/dist/weavesql/weavedb/agent_sql.js +844 -0
- package/dist/weavesql/weavedb/workflow_sql.d.ts +567 -86
- package/dist/weavesql/weavedb/workflow_sql.js +906 -178
- package/package.json +1 -1
|
@@ -0,0 +1,374 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
+
import { Observable } from "rxjs";
|
|
3
|
+
import { AgentDraft, AgentPublishPlan, AgentRun, AgentRunEvent, AgentRunStatus, AgentTemplate, AgentTemplateStatus, AgentToolDescriptor, AgentVersion } from "./agent.pb";
|
|
4
|
+
export declare const protobufPackage = "weaveapi.agent.v1";
|
|
5
|
+
export interface CreateAgentTemplateRequest {
|
|
6
|
+
organizationId: string;
|
|
7
|
+
slug: string;
|
|
8
|
+
name: string;
|
|
9
|
+
description: string;
|
|
10
|
+
instructions: string;
|
|
11
|
+
modelId: string;
|
|
12
|
+
providerConfigurationId: string;
|
|
13
|
+
tools: AgentToolDescriptor[];
|
|
14
|
+
inputSchema: {
|
|
15
|
+
[key: string]: any;
|
|
16
|
+
} | undefined;
|
|
17
|
+
outputSchema: {
|
|
18
|
+
[key: string]: any;
|
|
19
|
+
} | undefined;
|
|
20
|
+
metadata: {
|
|
21
|
+
[key: string]: any;
|
|
22
|
+
} | undefined;
|
|
23
|
+
}
|
|
24
|
+
export interface CreateAgentTemplateResponse {
|
|
25
|
+
template: AgentTemplate | undefined;
|
|
26
|
+
draft: AgentDraft | undefined;
|
|
27
|
+
}
|
|
28
|
+
export interface GetAgentTemplateRequest {
|
|
29
|
+
organizationId: string;
|
|
30
|
+
agentTemplateId: string;
|
|
31
|
+
}
|
|
32
|
+
export interface GetAgentTemplateResponse {
|
|
33
|
+
template: AgentTemplate | undefined;
|
|
34
|
+
draft: AgentDraft | undefined;
|
|
35
|
+
latestVersion: AgentVersion | undefined;
|
|
36
|
+
}
|
|
37
|
+
export interface ListAgentTemplatesRequest {
|
|
38
|
+
organizationId: string;
|
|
39
|
+
status: AgentTemplateStatus;
|
|
40
|
+
pageSize: number;
|
|
41
|
+
pageToken: string;
|
|
42
|
+
}
|
|
43
|
+
export interface ListAgentTemplatesResponse {
|
|
44
|
+
templates: AgentTemplate[];
|
|
45
|
+
nextPageToken: string;
|
|
46
|
+
}
|
|
47
|
+
export interface UpdateAgentDraftRequest {
|
|
48
|
+
organizationId: string;
|
|
49
|
+
agentTemplateId: string;
|
|
50
|
+
expectedRevision: number;
|
|
51
|
+
name: string;
|
|
52
|
+
description: string;
|
|
53
|
+
instructions: string;
|
|
54
|
+
modelId: string;
|
|
55
|
+
providerConfigurationId: string;
|
|
56
|
+
tools: AgentToolDescriptor[];
|
|
57
|
+
inputSchema: {
|
|
58
|
+
[key: string]: any;
|
|
59
|
+
} | undefined;
|
|
60
|
+
outputSchema: {
|
|
61
|
+
[key: string]: any;
|
|
62
|
+
} | undefined;
|
|
63
|
+
metadata: {
|
|
64
|
+
[key: string]: any;
|
|
65
|
+
} | undefined;
|
|
66
|
+
patch: {
|
|
67
|
+
[key: string]: any;
|
|
68
|
+
} | undefined;
|
|
69
|
+
}
|
|
70
|
+
export interface UpdateAgentDraftResponse {
|
|
71
|
+
draft: AgentDraft | undefined;
|
|
72
|
+
}
|
|
73
|
+
export interface PlanAgentPublishRequest {
|
|
74
|
+
organizationId: string;
|
|
75
|
+
agentTemplateId: string;
|
|
76
|
+
draftRevision: number;
|
|
77
|
+
}
|
|
78
|
+
export interface PlanAgentPublishResponse {
|
|
79
|
+
plan: AgentPublishPlan | undefined;
|
|
80
|
+
}
|
|
81
|
+
export interface PublishAgentTemplateRequest {
|
|
82
|
+
organizationId: string;
|
|
83
|
+
agentTemplateId: string;
|
|
84
|
+
draftRevision: number;
|
|
85
|
+
}
|
|
86
|
+
export interface PublishAgentTemplateResponse {
|
|
87
|
+
version: AgentVersion | undefined;
|
|
88
|
+
}
|
|
89
|
+
export interface GetAgentVersionRequest {
|
|
90
|
+
organizationId: string;
|
|
91
|
+
agentTemplateId: string;
|
|
92
|
+
version: number;
|
|
93
|
+
}
|
|
94
|
+
export interface GetAgentVersionResponse {
|
|
95
|
+
version: AgentVersion | undefined;
|
|
96
|
+
}
|
|
97
|
+
export interface ListAgentVersionsRequest {
|
|
98
|
+
organizationId: string;
|
|
99
|
+
agentTemplateId: string;
|
|
100
|
+
pageSize: number;
|
|
101
|
+
pageToken: string;
|
|
102
|
+
}
|
|
103
|
+
export interface ListAgentVersionsResponse {
|
|
104
|
+
versions: AgentVersion[];
|
|
105
|
+
nextPageToken: string;
|
|
106
|
+
}
|
|
107
|
+
export interface RunAgentRequest {
|
|
108
|
+
organizationId: string;
|
|
109
|
+
agentTemplateId: string;
|
|
110
|
+
version: number;
|
|
111
|
+
chatSessionId: string;
|
|
112
|
+
input: {
|
|
113
|
+
[key: string]: any;
|
|
114
|
+
} | undefined;
|
|
115
|
+
}
|
|
116
|
+
export interface RunAgentResponse {
|
|
117
|
+
run: AgentRun | undefined;
|
|
118
|
+
}
|
|
119
|
+
export interface GetAgentRunRequest {
|
|
120
|
+
organizationId: string;
|
|
121
|
+
agentRunId: string;
|
|
122
|
+
}
|
|
123
|
+
export interface GetAgentRunResponse {
|
|
124
|
+
run: AgentRun | undefined;
|
|
125
|
+
}
|
|
126
|
+
export interface ListAgentRunsRequest {
|
|
127
|
+
organizationId: string;
|
|
128
|
+
agentTemplateId: string;
|
|
129
|
+
status: AgentRunStatus;
|
|
130
|
+
pageSize: number;
|
|
131
|
+
pageToken: string;
|
|
132
|
+
}
|
|
133
|
+
export interface ListAgentRunsResponse {
|
|
134
|
+
runs: AgentRun[];
|
|
135
|
+
nextPageToken: string;
|
|
136
|
+
}
|
|
137
|
+
export interface WatchAgentRunEventsRequest {
|
|
138
|
+
organizationId: string;
|
|
139
|
+
agentRunId: string;
|
|
140
|
+
afterSequence: number;
|
|
141
|
+
}
|
|
142
|
+
export interface WatchAgentRunEventsResponse {
|
|
143
|
+
event: AgentRunEvent | undefined;
|
|
144
|
+
}
|
|
145
|
+
export declare const CreateAgentTemplateRequest: MessageFns<CreateAgentTemplateRequest>;
|
|
146
|
+
export declare const CreateAgentTemplateResponse: MessageFns<CreateAgentTemplateResponse>;
|
|
147
|
+
export declare const GetAgentTemplateRequest: MessageFns<GetAgentTemplateRequest>;
|
|
148
|
+
export declare const GetAgentTemplateResponse: MessageFns<GetAgentTemplateResponse>;
|
|
149
|
+
export declare const ListAgentTemplatesRequest: MessageFns<ListAgentTemplatesRequest>;
|
|
150
|
+
export declare const ListAgentTemplatesResponse: MessageFns<ListAgentTemplatesResponse>;
|
|
151
|
+
export declare const UpdateAgentDraftRequest: MessageFns<UpdateAgentDraftRequest>;
|
|
152
|
+
export declare const UpdateAgentDraftResponse: MessageFns<UpdateAgentDraftResponse>;
|
|
153
|
+
export declare const PlanAgentPublishRequest: MessageFns<PlanAgentPublishRequest>;
|
|
154
|
+
export declare const PlanAgentPublishResponse: MessageFns<PlanAgentPublishResponse>;
|
|
155
|
+
export declare const PublishAgentTemplateRequest: MessageFns<PublishAgentTemplateRequest>;
|
|
156
|
+
export declare const PublishAgentTemplateResponse: MessageFns<PublishAgentTemplateResponse>;
|
|
157
|
+
export declare const GetAgentVersionRequest: MessageFns<GetAgentVersionRequest>;
|
|
158
|
+
export declare const GetAgentVersionResponse: MessageFns<GetAgentVersionResponse>;
|
|
159
|
+
export declare const ListAgentVersionsRequest: MessageFns<ListAgentVersionsRequest>;
|
|
160
|
+
export declare const ListAgentVersionsResponse: MessageFns<ListAgentVersionsResponse>;
|
|
161
|
+
export declare const RunAgentRequest: MessageFns<RunAgentRequest>;
|
|
162
|
+
export declare const RunAgentResponse: MessageFns<RunAgentResponse>;
|
|
163
|
+
export declare const GetAgentRunRequest: MessageFns<GetAgentRunRequest>;
|
|
164
|
+
export declare const GetAgentRunResponse: MessageFns<GetAgentRunResponse>;
|
|
165
|
+
export declare const ListAgentRunsRequest: MessageFns<ListAgentRunsRequest>;
|
|
166
|
+
export declare const ListAgentRunsResponse: MessageFns<ListAgentRunsResponse>;
|
|
167
|
+
export declare const WatchAgentRunEventsRequest: MessageFns<WatchAgentRunEventsRequest>;
|
|
168
|
+
export declare const WatchAgentRunEventsResponse: MessageFns<WatchAgentRunEventsResponse>;
|
|
169
|
+
export interface AgentService {
|
|
170
|
+
CreateAgentTemplate(request: CreateAgentTemplateRequest): Promise<CreateAgentTemplateResponse>;
|
|
171
|
+
GetAgentTemplate(request: GetAgentTemplateRequest): Promise<GetAgentTemplateResponse>;
|
|
172
|
+
ListAgentTemplates(request: ListAgentTemplatesRequest): Promise<ListAgentTemplatesResponse>;
|
|
173
|
+
UpdateAgentDraft(request: UpdateAgentDraftRequest): Promise<UpdateAgentDraftResponse>;
|
|
174
|
+
PlanAgentPublish(request: PlanAgentPublishRequest): Promise<PlanAgentPublishResponse>;
|
|
175
|
+
PublishAgentTemplate(request: PublishAgentTemplateRequest): Promise<PublishAgentTemplateResponse>;
|
|
176
|
+
GetAgentVersion(request: GetAgentVersionRequest): Promise<GetAgentVersionResponse>;
|
|
177
|
+
ListAgentVersions(request: ListAgentVersionsRequest): Promise<ListAgentVersionsResponse>;
|
|
178
|
+
RunAgent(request: RunAgentRequest): Promise<RunAgentResponse>;
|
|
179
|
+
GetAgentRun(request: GetAgentRunRequest): Promise<GetAgentRunResponse>;
|
|
180
|
+
ListAgentRuns(request: ListAgentRunsRequest): Promise<ListAgentRunsResponse>;
|
|
181
|
+
WatchAgentRunEvents(request: WatchAgentRunEventsRequest): Observable<WatchAgentRunEventsResponse>;
|
|
182
|
+
}
|
|
183
|
+
export declare const AgentServiceServiceName = "weaveapi.agent.v1.AgentService";
|
|
184
|
+
export declare class AgentServiceClientImpl implements AgentService {
|
|
185
|
+
private readonly rpc;
|
|
186
|
+
private readonly service;
|
|
187
|
+
constructor(rpc: Rpc, opts?: {
|
|
188
|
+
service?: string;
|
|
189
|
+
});
|
|
190
|
+
CreateAgentTemplate(request: CreateAgentTemplateRequest): Promise<CreateAgentTemplateResponse>;
|
|
191
|
+
GetAgentTemplate(request: GetAgentTemplateRequest): Promise<GetAgentTemplateResponse>;
|
|
192
|
+
ListAgentTemplates(request: ListAgentTemplatesRequest): Promise<ListAgentTemplatesResponse>;
|
|
193
|
+
UpdateAgentDraft(request: UpdateAgentDraftRequest): Promise<UpdateAgentDraftResponse>;
|
|
194
|
+
PlanAgentPublish(request: PlanAgentPublishRequest): Promise<PlanAgentPublishResponse>;
|
|
195
|
+
PublishAgentTemplate(request: PublishAgentTemplateRequest): Promise<PublishAgentTemplateResponse>;
|
|
196
|
+
GetAgentVersion(request: GetAgentVersionRequest): Promise<GetAgentVersionResponse>;
|
|
197
|
+
ListAgentVersions(request: ListAgentVersionsRequest): Promise<ListAgentVersionsResponse>;
|
|
198
|
+
RunAgent(request: RunAgentRequest): Promise<RunAgentResponse>;
|
|
199
|
+
GetAgentRun(request: GetAgentRunRequest): Promise<GetAgentRunResponse>;
|
|
200
|
+
ListAgentRuns(request: ListAgentRunsRequest): Promise<ListAgentRunsResponse>;
|
|
201
|
+
WatchAgentRunEvents(request: WatchAgentRunEventsRequest): Observable<WatchAgentRunEventsResponse>;
|
|
202
|
+
}
|
|
203
|
+
export type AgentServiceDefinition = typeof AgentServiceDefinition;
|
|
204
|
+
export declare const AgentServiceDefinition: {
|
|
205
|
+
readonly name: "AgentService";
|
|
206
|
+
readonly fullName: "weaveapi.agent.v1.AgentService";
|
|
207
|
+
readonly methods: {
|
|
208
|
+
readonly createAgentTemplate: {
|
|
209
|
+
readonly name: "CreateAgentTemplate";
|
|
210
|
+
readonly requestType: typeof CreateAgentTemplateRequest;
|
|
211
|
+
readonly requestStream: false;
|
|
212
|
+
readonly responseType: typeof CreateAgentTemplateResponse;
|
|
213
|
+
readonly responseStream: false;
|
|
214
|
+
readonly options: {
|
|
215
|
+
readonly _unknownFields: {
|
|
216
|
+
readonly 578365826: readonly [Uint8Array];
|
|
217
|
+
};
|
|
218
|
+
};
|
|
219
|
+
};
|
|
220
|
+
readonly getAgentTemplate: {
|
|
221
|
+
readonly name: "GetAgentTemplate";
|
|
222
|
+
readonly requestType: typeof GetAgentTemplateRequest;
|
|
223
|
+
readonly requestStream: false;
|
|
224
|
+
readonly responseType: typeof GetAgentTemplateResponse;
|
|
225
|
+
readonly responseStream: false;
|
|
226
|
+
readonly options: {
|
|
227
|
+
readonly _unknownFields: {
|
|
228
|
+
readonly 578365826: readonly [Uint8Array];
|
|
229
|
+
};
|
|
230
|
+
};
|
|
231
|
+
};
|
|
232
|
+
readonly listAgentTemplates: {
|
|
233
|
+
readonly name: "ListAgentTemplates";
|
|
234
|
+
readonly requestType: typeof ListAgentTemplatesRequest;
|
|
235
|
+
readonly requestStream: false;
|
|
236
|
+
readonly responseType: typeof ListAgentTemplatesResponse;
|
|
237
|
+
readonly responseStream: false;
|
|
238
|
+
readonly options: {
|
|
239
|
+
readonly _unknownFields: {
|
|
240
|
+
readonly 578365826: readonly [Uint8Array];
|
|
241
|
+
};
|
|
242
|
+
};
|
|
243
|
+
};
|
|
244
|
+
readonly updateAgentDraft: {
|
|
245
|
+
readonly name: "UpdateAgentDraft";
|
|
246
|
+
readonly requestType: typeof UpdateAgentDraftRequest;
|
|
247
|
+
readonly requestStream: false;
|
|
248
|
+
readonly responseType: typeof UpdateAgentDraftResponse;
|
|
249
|
+
readonly responseStream: false;
|
|
250
|
+
readonly options: {
|
|
251
|
+
readonly _unknownFields: {
|
|
252
|
+
readonly 578365826: readonly [Uint8Array];
|
|
253
|
+
};
|
|
254
|
+
};
|
|
255
|
+
};
|
|
256
|
+
readonly planAgentPublish: {
|
|
257
|
+
readonly name: "PlanAgentPublish";
|
|
258
|
+
readonly requestType: typeof PlanAgentPublishRequest;
|
|
259
|
+
readonly requestStream: false;
|
|
260
|
+
readonly responseType: typeof PlanAgentPublishResponse;
|
|
261
|
+
readonly responseStream: false;
|
|
262
|
+
readonly options: {
|
|
263
|
+
readonly _unknownFields: {
|
|
264
|
+
readonly 578365826: readonly [Uint8Array];
|
|
265
|
+
};
|
|
266
|
+
};
|
|
267
|
+
};
|
|
268
|
+
readonly publishAgentTemplate: {
|
|
269
|
+
readonly name: "PublishAgentTemplate";
|
|
270
|
+
readonly requestType: typeof PublishAgentTemplateRequest;
|
|
271
|
+
readonly requestStream: false;
|
|
272
|
+
readonly responseType: typeof PublishAgentTemplateResponse;
|
|
273
|
+
readonly responseStream: false;
|
|
274
|
+
readonly options: {
|
|
275
|
+
readonly _unknownFields: {
|
|
276
|
+
readonly 578365826: readonly [Uint8Array];
|
|
277
|
+
};
|
|
278
|
+
};
|
|
279
|
+
};
|
|
280
|
+
readonly getAgentVersion: {
|
|
281
|
+
readonly name: "GetAgentVersion";
|
|
282
|
+
readonly requestType: typeof GetAgentVersionRequest;
|
|
283
|
+
readonly requestStream: false;
|
|
284
|
+
readonly responseType: typeof GetAgentVersionResponse;
|
|
285
|
+
readonly responseStream: false;
|
|
286
|
+
readonly options: {
|
|
287
|
+
readonly _unknownFields: {
|
|
288
|
+
readonly 578365826: readonly [Uint8Array];
|
|
289
|
+
};
|
|
290
|
+
};
|
|
291
|
+
};
|
|
292
|
+
readonly listAgentVersions: {
|
|
293
|
+
readonly name: "ListAgentVersions";
|
|
294
|
+
readonly requestType: typeof ListAgentVersionsRequest;
|
|
295
|
+
readonly requestStream: false;
|
|
296
|
+
readonly responseType: typeof ListAgentVersionsResponse;
|
|
297
|
+
readonly responseStream: false;
|
|
298
|
+
readonly options: {
|
|
299
|
+
readonly _unknownFields: {
|
|
300
|
+
readonly 578365826: readonly [Uint8Array];
|
|
301
|
+
};
|
|
302
|
+
};
|
|
303
|
+
};
|
|
304
|
+
readonly runAgent: {
|
|
305
|
+
readonly name: "RunAgent";
|
|
306
|
+
readonly requestType: typeof RunAgentRequest;
|
|
307
|
+
readonly requestStream: false;
|
|
308
|
+
readonly responseType: typeof RunAgentResponse;
|
|
309
|
+
readonly responseStream: false;
|
|
310
|
+
readonly options: {
|
|
311
|
+
readonly _unknownFields: {
|
|
312
|
+
readonly 578365826: readonly [Uint8Array];
|
|
313
|
+
};
|
|
314
|
+
};
|
|
315
|
+
};
|
|
316
|
+
readonly getAgentRun: {
|
|
317
|
+
readonly name: "GetAgentRun";
|
|
318
|
+
readonly requestType: typeof GetAgentRunRequest;
|
|
319
|
+
readonly requestStream: false;
|
|
320
|
+
readonly responseType: typeof GetAgentRunResponse;
|
|
321
|
+
readonly responseStream: false;
|
|
322
|
+
readonly options: {
|
|
323
|
+
readonly _unknownFields: {
|
|
324
|
+
readonly 578365826: readonly [Uint8Array];
|
|
325
|
+
};
|
|
326
|
+
};
|
|
327
|
+
};
|
|
328
|
+
readonly listAgentRuns: {
|
|
329
|
+
readonly name: "ListAgentRuns";
|
|
330
|
+
readonly requestType: typeof ListAgentRunsRequest;
|
|
331
|
+
readonly requestStream: false;
|
|
332
|
+
readonly responseType: typeof ListAgentRunsResponse;
|
|
333
|
+
readonly responseStream: false;
|
|
334
|
+
readonly options: {
|
|
335
|
+
readonly _unknownFields: {
|
|
336
|
+
readonly 578365826: readonly [Uint8Array];
|
|
337
|
+
};
|
|
338
|
+
};
|
|
339
|
+
};
|
|
340
|
+
readonly watchAgentRunEvents: {
|
|
341
|
+
readonly name: "WatchAgentRunEvents";
|
|
342
|
+
readonly requestType: typeof WatchAgentRunEventsRequest;
|
|
343
|
+
readonly requestStream: false;
|
|
344
|
+
readonly responseType: typeof WatchAgentRunEventsResponse;
|
|
345
|
+
readonly responseStream: true;
|
|
346
|
+
readonly options: {};
|
|
347
|
+
};
|
|
348
|
+
};
|
|
349
|
+
};
|
|
350
|
+
interface Rpc {
|
|
351
|
+
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
|
|
352
|
+
clientStreamingRequest(service: string, method: string, data: Observable<Uint8Array>): Promise<Uint8Array>;
|
|
353
|
+
serverStreamingRequest(service: string, method: string, data: Uint8Array): Observable<Uint8Array>;
|
|
354
|
+
bidirectionalStreamingRequest(service: string, method: string, data: Observable<Uint8Array>): Observable<Uint8Array>;
|
|
355
|
+
}
|
|
356
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
357
|
+
export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
358
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
359
|
+
} : Partial<T>;
|
|
360
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
361
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
362
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
363
|
+
} & {
|
|
364
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
365
|
+
};
|
|
366
|
+
export interface MessageFns<T> {
|
|
367
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
368
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
369
|
+
fromJSON(object: any): T;
|
|
370
|
+
toJSON(message: T): unknown;
|
|
371
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
372
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
373
|
+
}
|
|
374
|
+
export {};
|