weave-typescript 0.42.8 → 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/auth/v1/auth.pb.d.ts +34 -0
- package/dist/weaveapi/auth/v1/auth.pb.js +486 -1
- package/dist/weaveapi/auth/v1/service.pb.d.ts +31 -1
- package/dist/weaveapi/auth/v1/service.pb.js +351 -1
- 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/auth_identity_sql.d.ts +81 -0
- package/dist/weavesql/weavedb/auth_identity_sql.js +181 -2
- 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,225 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
+
export declare const protobufPackage = "weaveapi.agent.v1";
|
|
3
|
+
export declare enum AgentTemplateStatus {
|
|
4
|
+
AGENT_TEMPLATE_STATUS_UNSPECIFIED = 0,
|
|
5
|
+
AGENT_TEMPLATE_STATUS_ACTIVE = 1,
|
|
6
|
+
AGENT_TEMPLATE_STATUS_ARCHIVED = 2,
|
|
7
|
+
UNRECOGNIZED = -1
|
|
8
|
+
}
|
|
9
|
+
export declare function agentTemplateStatusFromJSON(object: any): AgentTemplateStatus;
|
|
10
|
+
export declare function agentTemplateStatusToJSON(object: AgentTemplateStatus): string;
|
|
11
|
+
export declare enum AgentToolDescriptorKind {
|
|
12
|
+
AGENT_TOOL_DESCRIPTOR_KIND_UNSPECIFIED = 0,
|
|
13
|
+
AGENT_TOOL_DESCRIPTOR_KIND_WEAVE_SERVICE = 1,
|
|
14
|
+
AGENT_TOOL_DESCRIPTOR_KIND_AGENT = 2,
|
|
15
|
+
AGENT_TOOL_DESCRIPTOR_KIND_WORKFLOW = 3,
|
|
16
|
+
AGENT_TOOL_DESCRIPTOR_KIND_EXTERNAL = 4,
|
|
17
|
+
AGENT_TOOL_DESCRIPTOR_KIND_MCP = 5,
|
|
18
|
+
UNRECOGNIZED = -1
|
|
19
|
+
}
|
|
20
|
+
export declare function agentToolDescriptorKindFromJSON(object: any): AgentToolDescriptorKind;
|
|
21
|
+
export declare function agentToolDescriptorKindToJSON(object: AgentToolDescriptorKind): string;
|
|
22
|
+
export declare enum AgentToolApprovalMode {
|
|
23
|
+
AGENT_TOOL_APPROVAL_MODE_UNSPECIFIED = 0,
|
|
24
|
+
AGENT_TOOL_APPROVAL_MODE_NEVER = 1,
|
|
25
|
+
AGENT_TOOL_APPROVAL_MODE_MUTATION = 2,
|
|
26
|
+
AGENT_TOOL_APPROVAL_MODE_ALWAYS = 3,
|
|
27
|
+
UNRECOGNIZED = -1
|
|
28
|
+
}
|
|
29
|
+
export declare function agentToolApprovalModeFromJSON(object: any): AgentToolApprovalMode;
|
|
30
|
+
export declare function agentToolApprovalModeToJSON(object: AgentToolApprovalMode): string;
|
|
31
|
+
export declare enum AgentRunStatus {
|
|
32
|
+
AGENT_RUN_STATUS_UNSPECIFIED = 0,
|
|
33
|
+
AGENT_RUN_STATUS_PENDING = 1,
|
|
34
|
+
AGENT_RUN_STATUS_RUNNING = 2,
|
|
35
|
+
AGENT_RUN_STATUS_WAITING = 3,
|
|
36
|
+
AGENT_RUN_STATUS_COMPLETED = 4,
|
|
37
|
+
AGENT_RUN_STATUS_FAILED = 5,
|
|
38
|
+
AGENT_RUN_STATUS_CANCELED = 6,
|
|
39
|
+
UNRECOGNIZED = -1
|
|
40
|
+
}
|
|
41
|
+
export declare function agentRunStatusFromJSON(object: any): AgentRunStatus;
|
|
42
|
+
export declare function agentRunStatusToJSON(object: AgentRunStatus): string;
|
|
43
|
+
export declare enum AgentRunEventKind {
|
|
44
|
+
AGENT_RUN_EVENT_KIND_UNSPECIFIED = 0,
|
|
45
|
+
AGENT_RUN_EVENT_KIND_STARTED = 1,
|
|
46
|
+
AGENT_RUN_EVENT_KIND_MODEL_REQUESTED = 2,
|
|
47
|
+
AGENT_RUN_EVENT_KIND_MODEL_RESPONDED = 3,
|
|
48
|
+
AGENT_RUN_EVENT_KIND_TOOL_CALL_PROPOSED = 4,
|
|
49
|
+
AGENT_RUN_EVENT_KIND_TOOL_CALL_STARTED = 5,
|
|
50
|
+
AGENT_RUN_EVENT_KIND_TOOL_CALL_COMPLETED = 6,
|
|
51
|
+
AGENT_RUN_EVENT_KIND_TOOL_CALL_FAILED = 7,
|
|
52
|
+
AGENT_RUN_EVENT_KIND_WAITING = 8,
|
|
53
|
+
AGENT_RUN_EVENT_KIND_COMPLETED = 9,
|
|
54
|
+
AGENT_RUN_EVENT_KIND_FAILED = 10,
|
|
55
|
+
AGENT_RUN_EVENT_KIND_CANCELED = 11,
|
|
56
|
+
UNRECOGNIZED = -1
|
|
57
|
+
}
|
|
58
|
+
export declare function agentRunEventKindFromJSON(object: any): AgentRunEventKind;
|
|
59
|
+
export declare function agentRunEventKindToJSON(object: AgentRunEventKind): string;
|
|
60
|
+
export interface AgentTemplate {
|
|
61
|
+
id: string;
|
|
62
|
+
organizationId: string;
|
|
63
|
+
slug: string;
|
|
64
|
+
name: string;
|
|
65
|
+
description: string;
|
|
66
|
+
status: AgentTemplateStatus;
|
|
67
|
+
createdByUserId: string;
|
|
68
|
+
draftRevision: number;
|
|
69
|
+
latestVersionId: string;
|
|
70
|
+
latestVersion: number;
|
|
71
|
+
createdAt: Date | undefined;
|
|
72
|
+
updatedAt: Date | undefined;
|
|
73
|
+
}
|
|
74
|
+
export interface AgentDraft {
|
|
75
|
+
id: string;
|
|
76
|
+
templateId: string;
|
|
77
|
+
organizationId: string;
|
|
78
|
+
baseVersionId: string;
|
|
79
|
+
revision: number;
|
|
80
|
+
name: string;
|
|
81
|
+
description: string;
|
|
82
|
+
instructions: string;
|
|
83
|
+
modelId: string;
|
|
84
|
+
providerConfigurationId: string;
|
|
85
|
+
tools: AgentToolDescriptor[];
|
|
86
|
+
inputSchema: {
|
|
87
|
+
[key: string]: any;
|
|
88
|
+
} | undefined;
|
|
89
|
+
outputSchema: {
|
|
90
|
+
[key: string]: any;
|
|
91
|
+
} | undefined;
|
|
92
|
+
metadata: {
|
|
93
|
+
[key: string]: any;
|
|
94
|
+
} | undefined;
|
|
95
|
+
updatedByUserId: string;
|
|
96
|
+
createdAt: Date | undefined;
|
|
97
|
+
updatedAt: Date | undefined;
|
|
98
|
+
}
|
|
99
|
+
export interface AgentDraftPatch {
|
|
100
|
+
id: string;
|
|
101
|
+
templateId: string;
|
|
102
|
+
organizationId: string;
|
|
103
|
+
revision: number;
|
|
104
|
+
patch: {
|
|
105
|
+
[key: string]: any;
|
|
106
|
+
} | undefined;
|
|
107
|
+
createdByUserId: string;
|
|
108
|
+
createdAt: Date | undefined;
|
|
109
|
+
}
|
|
110
|
+
export interface AgentVersion {
|
|
111
|
+
id: string;
|
|
112
|
+
templateId: string;
|
|
113
|
+
organizationId: string;
|
|
114
|
+
version: number;
|
|
115
|
+
sourceDraftRevision: number;
|
|
116
|
+
name: string;
|
|
117
|
+
description: string;
|
|
118
|
+
instructions: string;
|
|
119
|
+
modelId: string;
|
|
120
|
+
providerConfigurationId: string;
|
|
121
|
+
tools: AgentToolDescriptor[];
|
|
122
|
+
inputSchema: {
|
|
123
|
+
[key: string]: any;
|
|
124
|
+
} | undefined;
|
|
125
|
+
outputSchema: {
|
|
126
|
+
[key: string]: any;
|
|
127
|
+
} | undefined;
|
|
128
|
+
metadata: {
|
|
129
|
+
[key: string]: any;
|
|
130
|
+
} | undefined;
|
|
131
|
+
publishedByUserId: string;
|
|
132
|
+
publishedAt: Date | undefined;
|
|
133
|
+
}
|
|
134
|
+
export interface AgentToolDescriptor {
|
|
135
|
+
name: string;
|
|
136
|
+
displayName: string;
|
|
137
|
+
description: string;
|
|
138
|
+
kind: AgentToolDescriptorKind;
|
|
139
|
+
approvalMode: AgentToolApprovalMode;
|
|
140
|
+
inputSchema: {
|
|
141
|
+
[key: string]: any;
|
|
142
|
+
} | undefined;
|
|
143
|
+
outputSchema: {
|
|
144
|
+
[key: string]: any;
|
|
145
|
+
} | undefined;
|
|
146
|
+
config: {
|
|
147
|
+
[key: string]: any;
|
|
148
|
+
} | undefined;
|
|
149
|
+
}
|
|
150
|
+
export interface AgentPublishPlan {
|
|
151
|
+
templateId: string;
|
|
152
|
+
draftRevision: number;
|
|
153
|
+
publishable: boolean;
|
|
154
|
+
issues: AgentPublishPlanIssue[];
|
|
155
|
+
compiledPreview: {
|
|
156
|
+
[key: string]: any;
|
|
157
|
+
} | undefined;
|
|
158
|
+
}
|
|
159
|
+
export interface AgentPublishPlanIssue {
|
|
160
|
+
code: string;
|
|
161
|
+
message: string;
|
|
162
|
+
path: string;
|
|
163
|
+
}
|
|
164
|
+
export interface AgentRun {
|
|
165
|
+
id: string;
|
|
166
|
+
organizationId: string;
|
|
167
|
+
agentTemplateId: string;
|
|
168
|
+
agentVersionId: string;
|
|
169
|
+
status: AgentRunStatus;
|
|
170
|
+
createdByUserId: string;
|
|
171
|
+
chatSessionId: string;
|
|
172
|
+
workflowRunId: string;
|
|
173
|
+
workflowStepRunId: string;
|
|
174
|
+
input: {
|
|
175
|
+
[key: string]: any;
|
|
176
|
+
} | undefined;
|
|
177
|
+
output: {
|
|
178
|
+
[key: string]: any;
|
|
179
|
+
} | undefined;
|
|
180
|
+
errorCode: string;
|
|
181
|
+
safeErrorMessage: string;
|
|
182
|
+
createdAt: Date | undefined;
|
|
183
|
+
startedAt: Date | undefined;
|
|
184
|
+
finishedAt: Date | undefined;
|
|
185
|
+
}
|
|
186
|
+
export interface AgentRunEvent {
|
|
187
|
+
id: string;
|
|
188
|
+
organizationId: string;
|
|
189
|
+
agentRunId: string;
|
|
190
|
+
sequence: number;
|
|
191
|
+
kind: AgentRunEventKind;
|
|
192
|
+
message: string;
|
|
193
|
+
payload: {
|
|
194
|
+
[key: string]: any;
|
|
195
|
+
} | undefined;
|
|
196
|
+
createdAt: Date | undefined;
|
|
197
|
+
}
|
|
198
|
+
export declare const AgentTemplate: MessageFns<AgentTemplate>;
|
|
199
|
+
export declare const AgentDraft: MessageFns<AgentDraft>;
|
|
200
|
+
export declare const AgentDraftPatch: MessageFns<AgentDraftPatch>;
|
|
201
|
+
export declare const AgentVersion: MessageFns<AgentVersion>;
|
|
202
|
+
export declare const AgentToolDescriptor: MessageFns<AgentToolDescriptor>;
|
|
203
|
+
export declare const AgentPublishPlan: MessageFns<AgentPublishPlan>;
|
|
204
|
+
export declare const AgentPublishPlanIssue: MessageFns<AgentPublishPlanIssue>;
|
|
205
|
+
export declare const AgentRun: MessageFns<AgentRun>;
|
|
206
|
+
export declare const AgentRunEvent: MessageFns<AgentRunEvent>;
|
|
207
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
208
|
+
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 {} ? {
|
|
209
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
210
|
+
} : Partial<T>;
|
|
211
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
212
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
213
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
214
|
+
} & {
|
|
215
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
216
|
+
};
|
|
217
|
+
export interface MessageFns<T> {
|
|
218
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
219
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
220
|
+
fromJSON(object: any): T;
|
|
221
|
+
toJSON(message: T): unknown;
|
|
222
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
223
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
224
|
+
}
|
|
225
|
+
export {};
|