weave-typescript 0.5.0 → 0.8.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/llmx/v1/architecture.pb.d.ts +377 -0
- package/dist/weaveapi/llmx/v1/architecture.pb.js +2756 -0
- package/dist/weaveapi/llmx/v1/capabilities.pb.d.ts +320 -0
- package/dist/weaveapi/llmx/v1/capabilities.pb.js +2883 -0
- package/dist/weaveapi/{modex → llmx}/v1/model.pb.d.ts +85 -31
- package/dist/weaveapi/{modex → llmx}/v1/model.pb.js +113 -308
- package/dist/weaveapi/{modex → llmx}/v1/provider.pb.d.ts +1 -3
- package/dist/weaveapi/{modex → llmx}/v1/provider.pb.js +3 -57
- package/dist/weaveapi/{modex → llmx}/v1/service.pb.d.ts +20 -20
- package/dist/weaveapi/{modex → llmx}/v1/service.pb.js +17 -17
- package/dist/weavesql/llmxdb/capabilities_sql.d.ts +151 -0
- package/dist/weavesql/llmxdb/capabilities_sql.js +241 -0
- package/dist/weavesql/llmxdb/changes_sql.d.ts +81 -0
- package/dist/weavesql/llmxdb/changes_sql.js +118 -0
- package/dist/weavesql/llmxdb/models_sql.d.ts +198 -0
- package/dist/weavesql/llmxdb/models_sql.js +244 -0
- package/dist/weavesql/llmxdb/providers_sql.d.ts +122 -0
- package/dist/weavesql/llmxdb/providers_sql.js +179 -0
- package/dist/weavesql/llmxdb/scraper_runs_sql.d.ts +83 -0
- package/dist/weavesql/llmxdb/scraper_runs_sql.js +137 -0
- package/dist/weavesql/llmxdb/search_sql.d.ts +272 -0
- package/dist/weavesql/llmxdb/search_sql.js +348 -0
- package/dist/weavesql/weavedb/dataset_sql.d.ts +17 -0
- package/dist/weavesql/weavedb/dataset_sql.js +21 -0
- package/dist/weavesql/weavedb/relationships_sql.d.ts +16 -0
- package/dist/weavesql/weavedb/relationships_sql.js +32 -0
- package/dist/weavesql/weavedb/storage_sql.d.ts +33 -0
- package/dist/weavesql/weavedb/storage_sql.js +54 -0
- package/dist/weavesql/weavedb/synthesizer_sql.d.ts +28 -0
- package/dist/weavesql/weavedb/synthesizer_sql.js +42 -0
- package/package.json +13 -5
|
@@ -0,0 +1,320 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
+
export declare const protobufPackage = "weaveapi.llmx.v1";
|
|
3
|
+
/** Core capability types that models can support */
|
|
4
|
+
export declare enum CapabilityType {
|
|
5
|
+
CAPABILITY_TYPE_UNSPECIFIED = 0,
|
|
6
|
+
CAPABILITY_TYPE_STRUCTURED_RESPONSE = 1,
|
|
7
|
+
CAPABILITY_TYPE_STREAMING = 2,
|
|
8
|
+
CAPABILITY_TYPE_FUNCTION_CALLING = 3,
|
|
9
|
+
CAPABILITY_TYPE_VISION = 4,
|
|
10
|
+
CAPABILITY_TYPE_TOOL_USE = 5,
|
|
11
|
+
CAPABILITY_TYPE_SYSTEM_PROMPT = 6,
|
|
12
|
+
CAPABILITY_TYPE_CACHING = 7,
|
|
13
|
+
CAPABILITY_TYPE_REASONING = 8,
|
|
14
|
+
CAPABILITY_TYPE_AUDIO = 9,
|
|
15
|
+
CAPABILITY_TYPE_VIDEO = 10,
|
|
16
|
+
CAPABILITY_TYPE_EMBEDDINGS = 11,
|
|
17
|
+
CAPABILITY_TYPE_FINE_TUNING = 12,
|
|
18
|
+
UNRECOGNIZED = -1
|
|
19
|
+
}
|
|
20
|
+
export declare function capabilityTypeFromJSON(object: any): CapabilityType;
|
|
21
|
+
export declare function capabilityTypeToJSON(object: CapabilityType): string;
|
|
22
|
+
/** Data format types for structured responses, fine-tuning, etc. */
|
|
23
|
+
export declare enum DataFormat {
|
|
24
|
+
DATA_FORMAT_UNSPECIFIED = 0,
|
|
25
|
+
DATA_FORMAT_JSON = 1,
|
|
26
|
+
DATA_FORMAT_YAML = 2,
|
|
27
|
+
DATA_FORMAT_XML = 3,
|
|
28
|
+
DATA_FORMAT_JSONL = 4,
|
|
29
|
+
DATA_FORMAT_CSV = 5,
|
|
30
|
+
DATA_FORMAT_PARQUET = 6,
|
|
31
|
+
DATA_FORMAT_PLAIN = 7,
|
|
32
|
+
DATA_FORMAT_MARKDOWN = 8,
|
|
33
|
+
DATA_FORMAT_STRUCTURED = 9,
|
|
34
|
+
UNRECOGNIZED = -1
|
|
35
|
+
}
|
|
36
|
+
export declare function dataFormatFromJSON(object: any): DataFormat;
|
|
37
|
+
export declare function dataFormatToJSON(object: DataFormat): string;
|
|
38
|
+
/** JSON schema types supported in structured responses */
|
|
39
|
+
export declare enum JsonSchemaType {
|
|
40
|
+
JSON_SCHEMA_TYPE_UNSPECIFIED = 0,
|
|
41
|
+
JSON_SCHEMA_TYPE_OBJECT = 1,
|
|
42
|
+
JSON_SCHEMA_TYPE_ARRAY = 2,
|
|
43
|
+
JSON_SCHEMA_TYPE_STRING = 3,
|
|
44
|
+
JSON_SCHEMA_TYPE_NUMBER = 4,
|
|
45
|
+
JSON_SCHEMA_TYPE_BOOLEAN = 5,
|
|
46
|
+
JSON_SCHEMA_TYPE_NULL = 6,
|
|
47
|
+
JSON_SCHEMA_TYPE_INTEGER = 7,
|
|
48
|
+
UNRECOGNIZED = -1
|
|
49
|
+
}
|
|
50
|
+
export declare function jsonSchemaTypeFromJSON(object: any): JsonSchemaType;
|
|
51
|
+
export declare function jsonSchemaTypeToJSON(object: JsonSchemaType): string;
|
|
52
|
+
/** Image formats */
|
|
53
|
+
export declare enum ImageFormat {
|
|
54
|
+
IMAGE_FORMAT_UNSPECIFIED = 0,
|
|
55
|
+
IMAGE_FORMAT_JPEG = 1,
|
|
56
|
+
IMAGE_FORMAT_PNG = 2,
|
|
57
|
+
IMAGE_FORMAT_GIF = 3,
|
|
58
|
+
IMAGE_FORMAT_WEBP = 4,
|
|
59
|
+
IMAGE_FORMAT_BMP = 5,
|
|
60
|
+
IMAGE_FORMAT_TIFF = 6,
|
|
61
|
+
IMAGE_FORMAT_SVG = 7,
|
|
62
|
+
UNRECOGNIZED = -1
|
|
63
|
+
}
|
|
64
|
+
export declare function imageFormatFromJSON(object: any): ImageFormat;
|
|
65
|
+
export declare function imageFormatToJSON(object: ImageFormat): string;
|
|
66
|
+
/** Audio formats */
|
|
67
|
+
export declare enum AudioFormat {
|
|
68
|
+
AUDIO_FORMAT_UNSPECIFIED = 0,
|
|
69
|
+
AUDIO_FORMAT_MP3 = 1,
|
|
70
|
+
AUDIO_FORMAT_WAV = 2,
|
|
71
|
+
AUDIO_FORMAT_OGG = 3,
|
|
72
|
+
AUDIO_FORMAT_M4A = 4,
|
|
73
|
+
AUDIO_FORMAT_FLAC = 5,
|
|
74
|
+
AUDIO_FORMAT_AAC = 6,
|
|
75
|
+
AUDIO_FORMAT_WMA = 7,
|
|
76
|
+
AUDIO_FORMAT_OPUS = 8,
|
|
77
|
+
UNRECOGNIZED = -1
|
|
78
|
+
}
|
|
79
|
+
export declare function audioFormatFromJSON(object: any): AudioFormat;
|
|
80
|
+
export declare function audioFormatToJSON(object: AudioFormat): string;
|
|
81
|
+
/** Video formats */
|
|
82
|
+
export declare enum VideoFormat {
|
|
83
|
+
VIDEO_FORMAT_UNSPECIFIED = 0,
|
|
84
|
+
VIDEO_FORMAT_MP4 = 1,
|
|
85
|
+
VIDEO_FORMAT_AVI = 2,
|
|
86
|
+
VIDEO_FORMAT_MOV = 3,
|
|
87
|
+
VIDEO_FORMAT_MKV = 4,
|
|
88
|
+
VIDEO_FORMAT_WEBM = 5,
|
|
89
|
+
VIDEO_FORMAT_FLV = 6,
|
|
90
|
+
VIDEO_FORMAT_WMV = 7,
|
|
91
|
+
UNRECOGNIZED = -1
|
|
92
|
+
}
|
|
93
|
+
export declare function videoFormatFromJSON(object: any): VideoFormat;
|
|
94
|
+
export declare function videoFormatToJSON(object: VideoFormat): string;
|
|
95
|
+
/** Tool types supported */
|
|
96
|
+
export declare enum ToolType {
|
|
97
|
+
TOOL_TYPE_UNSPECIFIED = 0,
|
|
98
|
+
TOOL_TYPE_FUNCTION = 1,
|
|
99
|
+
TOOL_TYPE_RETRIEVAL = 2,
|
|
100
|
+
TOOL_TYPE_CODE_INTERPRETER = 3,
|
|
101
|
+
TOOL_TYPE_WEB_BROWSER = 4,
|
|
102
|
+
TOOL_TYPE_DATABASE = 5,
|
|
103
|
+
TOOL_TYPE_API = 6,
|
|
104
|
+
TOOL_TYPE_CUSTOM = 7,
|
|
105
|
+
UNRECOGNIZED = -1
|
|
106
|
+
}
|
|
107
|
+
export declare function toolTypeFromJSON(object: any): ToolType;
|
|
108
|
+
export declare function toolTypeToJSON(object: ToolType): string;
|
|
109
|
+
/** Cache key strategies */
|
|
110
|
+
export declare enum CacheStrategy {
|
|
111
|
+
CACHE_STRATEGY_UNSPECIFIED = 0,
|
|
112
|
+
CACHE_STRATEGY_HASH = 1,
|
|
113
|
+
CACHE_STRATEGY_SEMANTIC = 2,
|
|
114
|
+
CACHE_STRATEGY_CUSTOM = 3,
|
|
115
|
+
CACHE_STRATEGY_PREFIX = 4,
|
|
116
|
+
CACHE_STRATEGY_SUFFIX = 5,
|
|
117
|
+
UNRECOGNIZED = -1
|
|
118
|
+
}
|
|
119
|
+
export declare function cacheStrategyFromJSON(object: any): CacheStrategy;
|
|
120
|
+
export declare function cacheStrategyToJSON(object: CacheStrategy): string;
|
|
121
|
+
/** Reasoning strategies */
|
|
122
|
+
export declare enum ReasoningStrategy {
|
|
123
|
+
REASONING_STRATEGY_UNSPECIFIED = 0,
|
|
124
|
+
REASONING_STRATEGY_CHAIN_OF_THOUGHT = 1,
|
|
125
|
+
REASONING_STRATEGY_TREE_OF_THOUGHTS = 2,
|
|
126
|
+
REASONING_STRATEGY_GRAPH_OF_THOUGHTS = 3,
|
|
127
|
+
REASONING_STRATEGY_STEP_BY_STEP = 4,
|
|
128
|
+
REASONING_STRATEGY_SELF_CONSISTENCY = 5,
|
|
129
|
+
REASONING_STRATEGY_LEAST_TO_MOST = 6,
|
|
130
|
+
UNRECOGNIZED = -1
|
|
131
|
+
}
|
|
132
|
+
export declare function reasoningStrategyFromJSON(object: any): ReasoningStrategy;
|
|
133
|
+
export declare function reasoningStrategyToJSON(object: ReasoningStrategy): string;
|
|
134
|
+
/** Distance metrics for embeddings */
|
|
135
|
+
export declare enum DistanceMetric {
|
|
136
|
+
DISTANCE_METRIC_UNSPECIFIED = 0,
|
|
137
|
+
DISTANCE_METRIC_COSINE = 1,
|
|
138
|
+
DISTANCE_METRIC_EUCLIDEAN = 2,
|
|
139
|
+
DISTANCE_METRIC_DOT_PRODUCT = 3,
|
|
140
|
+
DISTANCE_METRIC_MANHATTAN = 4,
|
|
141
|
+
DISTANCE_METRIC_HAMMING = 5,
|
|
142
|
+
UNRECOGNIZED = -1
|
|
143
|
+
}
|
|
144
|
+
export declare function distanceMetricFromJSON(object: any): DistanceMetric;
|
|
145
|
+
export declare function distanceMetricToJSON(object: DistanceMetric): string;
|
|
146
|
+
/** Hyperparameter types for fine-tuning */
|
|
147
|
+
export declare enum Hyperparameter {
|
|
148
|
+
HYPERPARAMETER_UNSPECIFIED = 0,
|
|
149
|
+
HYPERPARAMETER_LEARNING_RATE = 1,
|
|
150
|
+
HYPERPARAMETER_BATCH_SIZE = 2,
|
|
151
|
+
HYPERPARAMETER_EPOCHS = 3,
|
|
152
|
+
HYPERPARAMETER_WARMUP_STEPS = 4,
|
|
153
|
+
HYPERPARAMETER_WEIGHT_DECAY = 5,
|
|
154
|
+
HYPERPARAMETER_GRADIENT_ACCUMULATION = 6,
|
|
155
|
+
HYPERPARAMETER_LR_SCHEDULER = 7,
|
|
156
|
+
HYPERPARAMETER_OPTIMIZER = 8,
|
|
157
|
+
HYPERPARAMETER_DROPOUT = 9,
|
|
158
|
+
HYPERPARAMETER_MAX_SEQUENCE_LENGTH = 10,
|
|
159
|
+
UNRECOGNIZED = -1
|
|
160
|
+
}
|
|
161
|
+
export declare function hyperparameterFromJSON(object: any): Hyperparameter;
|
|
162
|
+
export declare function hyperparameterToJSON(object: Hyperparameter): string;
|
|
163
|
+
/** Base capability configuration */
|
|
164
|
+
export interface Capability {
|
|
165
|
+
type: CapabilityType;
|
|
166
|
+
enabled: boolean;
|
|
167
|
+
structuredResponse?: StructuredResponse | undefined;
|
|
168
|
+
streaming?: Streaming | undefined;
|
|
169
|
+
functionCalling?: FunctionCalling | undefined;
|
|
170
|
+
vision?: Vision | undefined;
|
|
171
|
+
toolUse?: ToolUse | undefined;
|
|
172
|
+
systemPrompt?: SystemPrompt | undefined;
|
|
173
|
+
caching?: Caching | undefined;
|
|
174
|
+
reasoning?: Reasoning | undefined;
|
|
175
|
+
audio?: Audio | undefined;
|
|
176
|
+
video?: Video | undefined;
|
|
177
|
+
embeddings?: Embeddings | undefined;
|
|
178
|
+
fineTuning?: FineTuning | undefined;
|
|
179
|
+
}
|
|
180
|
+
/** Structured response capability configuration */
|
|
181
|
+
export interface StructuredResponse {
|
|
182
|
+
systemPromptHint: string;
|
|
183
|
+
supportedFormats: DataFormat[];
|
|
184
|
+
maxSchemaDepth: number;
|
|
185
|
+
requiresToolUse: boolean;
|
|
186
|
+
requiresJsonMode: boolean;
|
|
187
|
+
maxProperties: number;
|
|
188
|
+
supportedTypes: JsonSchemaType[];
|
|
189
|
+
/** Can stream structured responses (not just generate them) */
|
|
190
|
+
supportsStreaming: boolean;
|
|
191
|
+
}
|
|
192
|
+
/** Streaming capability configuration */
|
|
193
|
+
export interface Streaming {
|
|
194
|
+
chunkDelimiter: string;
|
|
195
|
+
bufferSize: number;
|
|
196
|
+
supportsSse: boolean;
|
|
197
|
+
supportsUsage: boolean;
|
|
198
|
+
avgChunkSizeBytes: number;
|
|
199
|
+
maxChunkDelayMs: number;
|
|
200
|
+
}
|
|
201
|
+
/** Function calling capability configuration */
|
|
202
|
+
export interface FunctionCalling {
|
|
203
|
+
maxFunctions: number;
|
|
204
|
+
maxParallelCalls: number;
|
|
205
|
+
supportsParallel: boolean;
|
|
206
|
+
requiresToolRole: boolean;
|
|
207
|
+
supportsStreaming: boolean;
|
|
208
|
+
supportedParameterTypes: JsonSchemaType[];
|
|
209
|
+
maxNestingDepth: number;
|
|
210
|
+
}
|
|
211
|
+
/** Vision capability configuration */
|
|
212
|
+
export interface Vision {
|
|
213
|
+
supportedFormats: ImageFormat[];
|
|
214
|
+
maxImageSizeBytes: number;
|
|
215
|
+
maxImagesPerRequest: number;
|
|
216
|
+
supportsImageGeneration: boolean;
|
|
217
|
+
supportsVideoFrames: boolean;
|
|
218
|
+
maxResolutionWidth: number;
|
|
219
|
+
maxResolutionHeight: number;
|
|
220
|
+
supportsOcr: boolean;
|
|
221
|
+
supportsObjectDetection: boolean;
|
|
222
|
+
}
|
|
223
|
+
/** Tool use capability configuration */
|
|
224
|
+
export interface ToolUse {
|
|
225
|
+
maxTools: number;
|
|
226
|
+
supportsSequential: boolean;
|
|
227
|
+
supportsParallel: boolean;
|
|
228
|
+
maxToolRounds: number;
|
|
229
|
+
supportedToolTypes: ToolType[];
|
|
230
|
+
}
|
|
231
|
+
/** System prompt capability configuration */
|
|
232
|
+
export interface SystemPrompt {
|
|
233
|
+
maxLength: number;
|
|
234
|
+
supportsMultiple: boolean;
|
|
235
|
+
supportsCaching: boolean;
|
|
236
|
+
format: DataFormat;
|
|
237
|
+
}
|
|
238
|
+
/** Caching capability configuration */
|
|
239
|
+
export interface Caching {
|
|
240
|
+
cacheKeyStrategy: CacheStrategy;
|
|
241
|
+
maxCacheSizeBytes: number;
|
|
242
|
+
cacheTtlSeconds: number;
|
|
243
|
+
supportsContextCaching: boolean;
|
|
244
|
+
supportsPromptCaching: boolean;
|
|
245
|
+
minCacheableTokens: number;
|
|
246
|
+
}
|
|
247
|
+
/** Reasoning capability configuration */
|
|
248
|
+
export interface Reasoning {
|
|
249
|
+
supportsChainOfThought: boolean;
|
|
250
|
+
supportsStepTracking: boolean;
|
|
251
|
+
maxReasoningSteps: number;
|
|
252
|
+
supportsSelfCorrection: boolean;
|
|
253
|
+
reasoningStrategies: ReasoningStrategy[];
|
|
254
|
+
}
|
|
255
|
+
/** Audio capability configuration */
|
|
256
|
+
export interface Audio {
|
|
257
|
+
supportedFormats: AudioFormat[];
|
|
258
|
+
maxDurationSeconds: number;
|
|
259
|
+
maxFileSizeBytes: number;
|
|
260
|
+
supportsTranscription: boolean;
|
|
261
|
+
supportsGeneration: boolean;
|
|
262
|
+
supportedLanguages: string[];
|
|
263
|
+
}
|
|
264
|
+
/** Video capability configuration */
|
|
265
|
+
export interface Video {
|
|
266
|
+
supportedFormats: VideoFormat[];
|
|
267
|
+
maxDurationSeconds: number;
|
|
268
|
+
maxFileSizeBytes: number;
|
|
269
|
+
maxFps: number;
|
|
270
|
+
supportsFrameExtraction: boolean;
|
|
271
|
+
}
|
|
272
|
+
/** Embeddings capability configuration */
|
|
273
|
+
export interface Embeddings {
|
|
274
|
+
embeddingDimensions: number;
|
|
275
|
+
maxInputTokens: number;
|
|
276
|
+
supportsBatch: boolean;
|
|
277
|
+
maxBatchSize: number;
|
|
278
|
+
distanceMetrics: DistanceMetric[];
|
|
279
|
+
}
|
|
280
|
+
/** Fine-tuning capability configuration */
|
|
281
|
+
export interface FineTuning {
|
|
282
|
+
minExamples: number;
|
|
283
|
+
maxExamples: number;
|
|
284
|
+
supportedFormats: DataFormat[];
|
|
285
|
+
maxFileSizeMb: number;
|
|
286
|
+
supportsValidationSet: boolean;
|
|
287
|
+
hyperparameters: Hyperparameter[];
|
|
288
|
+
}
|
|
289
|
+
export declare const Capability: MessageFns<Capability>;
|
|
290
|
+
export declare const StructuredResponse: MessageFns<StructuredResponse>;
|
|
291
|
+
export declare const Streaming: MessageFns<Streaming>;
|
|
292
|
+
export declare const FunctionCalling: MessageFns<FunctionCalling>;
|
|
293
|
+
export declare const Vision: MessageFns<Vision>;
|
|
294
|
+
export declare const ToolUse: MessageFns<ToolUse>;
|
|
295
|
+
export declare const SystemPrompt: MessageFns<SystemPrompt>;
|
|
296
|
+
export declare const Caching: MessageFns<Caching>;
|
|
297
|
+
export declare const Reasoning: MessageFns<Reasoning>;
|
|
298
|
+
export declare const Audio: MessageFns<Audio>;
|
|
299
|
+
export declare const Video: MessageFns<Video>;
|
|
300
|
+
export declare const Embeddings: MessageFns<Embeddings>;
|
|
301
|
+
export declare const FineTuning: MessageFns<FineTuning>;
|
|
302
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
303
|
+
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 {} ? {
|
|
304
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
305
|
+
} : Partial<T>;
|
|
306
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
307
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
308
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
309
|
+
} & {
|
|
310
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
311
|
+
};
|
|
312
|
+
export interface MessageFns<T> {
|
|
313
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
314
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
315
|
+
fromJSON(object: any): T;
|
|
316
|
+
toJSON(message: T): unknown;
|
|
317
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
318
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
319
|
+
}
|
|
320
|
+
export {};
|