weave-typescript 0.13.0 → 0.14.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.
Files changed (121) hide show
  1. package/dist/index.d.ts +9 -16
  2. package/dist/index.js +13 -21
  3. package/dist/weaveapi/project/v1/project.pb.d.ts +67 -5
  4. package/dist/weaveapi/project/v1/project.pb.js +764 -65
  5. package/dist/weaveapi/project/v1/service.pb.d.ts +110 -69
  6. package/dist/weaveapi/project/v1/service.pb.js +1056 -392
  7. package/dist/weaveapi/task/v1/service.pb.d.ts +171 -0
  8. package/dist/weaveapi/task/v1/service.pb.js +1416 -0
  9. package/dist/weaveapi/task/v1/task.pb.d.ts +84 -0
  10. package/dist/weaveapi/task/v1/task.pb.js +782 -0
  11. package/dist/weavesql/atcdb/event_sql.d.ts +10 -0
  12. package/dist/weavesql/atcdb/event_sql.js +11 -1
  13. package/dist/weavesql/atcdb/mailbox_sql.d.ts +2 -2
  14. package/dist/weavesql/atcdb/mailbox_sql.js +1 -1
  15. package/dist/weavesql/weavedb/project_sql.d.ts +121 -46
  16. package/dist/weavesql/weavedb/project_sql.js +304 -112
  17. package/dist/weavesql/weavedb/task_sql.d.ts +163 -0
  18. package/dist/weavesql/weavedb/task_sql.js +328 -0
  19. package/package.json +1 -1
  20. package/dist/weaveapi/auth/v1/service.pb.d.ts +0 -709
  21. package/dist/weaveapi/auth/v1/service.pb.js +0 -5058
  22. package/dist/weaveapi/auth/v1/session.pb.d.ts +0 -43
  23. package/dist/weaveapi/auth/v1/session.pb.js +0 -308
  24. package/dist/weaveapi/auth/v1/usage.pb.d.ts +0 -76
  25. package/dist/weaveapi/auth/v1/usage.pb.js +0 -849
  26. package/dist/weaveapi/auth/v1/user.pb.d.ts +0 -141
  27. package/dist/weaveapi/auth/v1/user.pb.js +0 -1625
  28. package/dist/weaveapi/data/v1/data.pb.d.ts +0 -54
  29. package/dist/weaveapi/data/v1/data.pb.js +0 -411
  30. package/dist/weaveapi/data/v1/service.pb.d.ts +0 -296
  31. package/dist/weaveapi/data/v1/service.pb.js +0 -2777
  32. package/dist/weaveapi/generate/v1/configuration.pb.d.ts +0 -122
  33. package/dist/weaveapi/generate/v1/configuration.pb.js +0 -877
  34. package/dist/weaveapi/generate/v1/generate.pb.d.ts +0 -48
  35. package/dist/weaveapi/generate/v1/generate.pb.js +0 -367
  36. package/dist/weaveapi/generate/v1/service.pb.d.ts +0 -173
  37. package/dist/weaveapi/generate/v1/service.pb.js +0 -1207
  38. package/dist/weaveapi/input/v1/input.pb.d.ts +0 -77
  39. package/dist/weaveapi/input/v1/input.pb.js +0 -632
  40. package/dist/weaveapi/input/v1/service.pb.d.ts +0 -390
  41. package/dist/weaveapi/input/v1/service.pb.js +0 -3610
  42. package/dist/weaveapi/integration/v1/integration.pb.d.ts +0 -67
  43. package/dist/weaveapi/integration/v1/integration.pb.js +0 -486
  44. package/dist/weaveapi/integration/v1/service.pb.d.ts +0 -318
  45. package/dist/weaveapi/integration/v1/service.pb.js +0 -2992
  46. package/dist/weaveapi/llmx/v1/architecture.pb.d.ts +0 -665
  47. package/dist/weaveapi/llmx/v1/architecture.pb.js +0 -3028
  48. package/dist/weaveapi/llmx/v1/capabilities.pb.d.ts +0 -709
  49. package/dist/weaveapi/llmx/v1/capabilities.pb.js +0 -3458
  50. package/dist/weaveapi/llmx/v1/model.pb.d.ts +0 -375
  51. package/dist/weaveapi/llmx/v1/model.pb.js +0 -1472
  52. package/dist/weaveapi/llmx/v1/pricing.pb.d.ts +0 -340
  53. package/dist/weaveapi/llmx/v1/pricing.pb.js +0 -974
  54. package/dist/weaveapi/llmx/v1/provider.pb.d.ts +0 -72
  55. package/dist/weaveapi/llmx/v1/provider.pb.js +0 -218
  56. package/dist/weaveapi/llmx/v1/service.pb.d.ts +0 -683
  57. package/dist/weaveapi/llmx/v1/service.pb.js +0 -5311
  58. package/dist/weaveapi/mcpregistry/v1/server.pb.d.ts +0 -54
  59. package/dist/weaveapi/mcpregistry/v1/server.pb.js +0 -436
  60. package/dist/weaveapi/mcpregistry/v1/service.pb.d.ts +0 -171
  61. package/dist/weaveapi/mcpregistry/v1/service.pb.js +0 -963
  62. package/dist/weaveapi/payment/v1/invoice.pb.d.ts +0 -92
  63. package/dist/weaveapi/payment/v1/invoice.pb.js +0 -998
  64. package/dist/weaveapi/payment/v1/service.pb.d.ts +0 -662
  65. package/dist/weaveapi/payment/v1/service.pb.js +0 -5395
  66. package/dist/weaveapi/payment/v1/subscription.pb.d.ts +0 -165
  67. package/dist/weaveapi/payment/v1/subscription.pb.js +0 -1930
  68. package/dist/weaveapi/report/v1/report.pb.d.ts +0 -81
  69. package/dist/weaveapi/report/v1/report.pb.js +0 -678
  70. package/dist/weaveapi/report/v1/service.pb.d.ts +0 -194
  71. package/dist/weaveapi/report/v1/service.pb.js +0 -1923
  72. package/dist/weaveapi/requirement/v1/requirement.pb.d.ts +0 -70
  73. package/dist/weaveapi/requirement/v1/requirement.pb.js +0 -570
  74. package/dist/weaveapi/requirement/v1/service.pb.d.ts +0 -390
  75. package/dist/weaveapi/requirement/v1/service.pb.js +0 -3636
  76. package/dist/weaveapi/run/v1/run.pb.d.ts +0 -117
  77. package/dist/weaveapi/run/v1/run.pb.js +0 -1155
  78. package/dist/weaveapi/run/v1/service.pb.d.ts +0 -229
  79. package/dist/weaveapi/run/v1/service.pb.js +0 -2426
  80. package/dist/weaveapi/script/v1/script.pb.d.ts +0 -102
  81. package/dist/weaveapi/script/v1/script.pb.js +0 -1025
  82. package/dist/weaveapi/script/v1/service.pb.d.ts +0 -502
  83. package/dist/weaveapi/script/v1/service.pb.js +0 -4871
  84. package/dist/weaveapi/storage/v1/auth.pb.d.ts +0 -27
  85. package/dist/weaveapi/storage/v1/auth.pb.js +0 -110
  86. package/dist/weaveapi/storage/v1/nosql_database.pb.d.ts +0 -91
  87. package/dist/weaveapi/storage/v1/nosql_database.pb.js +0 -1056
  88. package/dist/weaveapi/storage/v1/object_store.pb.d.ts +0 -49
  89. package/dist/weaveapi/storage/v1/object_store.pb.js +0 -441
  90. package/dist/weaveapi/storage/v1/service.pb.d.ts +0 -245
  91. package/dist/weaveapi/storage/v1/service.pb.js +0 -1339
  92. package/dist/weaveapi/storage/v1/sql_database.pb.d.ts +0 -98
  93. package/dist/weaveapi/storage/v1/sql_database.pb.js +0 -1184
  94. package/dist/weaveapi/storage/v1/storage.pb.d.ts +0 -35
  95. package/dist/weaveapi/storage/v1/storage.pb.js +0 -198
  96. package/dist/weaveapi/storage/v1/vcs.pb.d.ts +0 -75
  97. package/dist/weaveapi/storage/v1/vcs.pb.js +0 -864
  98. package/dist/weaveapi/suite/v1/service.pb.d.ts +0 -539
  99. package/dist/weaveapi/suite/v1/service.pb.js +0 -5279
  100. package/dist/weaveapi/suite/v1/suite.pb.d.ts +0 -92
  101. package/dist/weaveapi/suite/v1/suite.pb.js +0 -876
  102. package/dist/weaveapi/synthesize/v1/dataset.pb.d.ts +0 -68
  103. package/dist/weaveapi/synthesize/v1/dataset.pb.js +0 -460
  104. package/dist/weaveapi/synthesize/v1/inline_data.pb.d.ts +0 -45
  105. package/dist/weaveapi/synthesize/v1/inline_data.pb.js +0 -166
  106. package/dist/weaveapi/synthesize/v1/relationship.pb.d.ts +0 -58
  107. package/dist/weaveapi/synthesize/v1/relationship.pb.js +0 -253
  108. package/dist/weaveapi/synthesize/v1/service.pb.d.ts +0 -144
  109. package/dist/weaveapi/synthesize/v1/service.pb.js +0 -937
  110. package/dist/weaveapi/synthesize/v1/training.pb.d.ts +0 -58
  111. package/dist/weaveapi/synthesize/v1/training.pb.js +0 -386
  112. package/dist/weaveapi/testcase/v1/service.pb.d.ts +0 -498
  113. package/dist/weaveapi/testcase/v1/service.pb.js +0 -4728
  114. package/dist/weaveapi/testcase/v1/testcase.pb.d.ts +0 -91
  115. package/dist/weaveapi/testcase/v1/testcase.pb.js +0 -794
  116. package/dist/weaveapi/workflow/v1/service.pb.d.ts +0 -261
  117. package/dist/weaveapi/workflow/v1/service.pb.js +0 -2120
  118. package/dist/weaveapi/workflow/v1/workflow.pb.d.ts +0 -77
  119. package/dist/weaveapi/workflow/v1/workflow.pb.js +0 -555
  120. package/dist/weaveapi/workflowdata/v1/service.pb.d.ts +0 -295
  121. package/dist/weaveapi/workflowdata/v1/service.pb.js +0 -2612
@@ -1,375 +0,0 @@
1
- import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
- import { Architecture, Licensing, Safety, TechnicalSpecs, Training } from "./architecture.pb";
3
- import { Capability } from "./capabilities.pb";
4
- import { Pricing } from "./pricing.pb";
5
- export declare const protobufPackage = "weaveapi.llmx.v1";
6
- /**
7
- * Model represents a complete AI model with all its metadata, capabilities, and pricing.
8
- * This is the primary entity for model discovery and comparison.
9
- */
10
- export interface Model {
11
- /**
12
- * Unique internal identifier for this model record in our database.
13
- * Example: "mdl_01234567-89ab-cdef-0123-456789abcdef"
14
- * Generated by our system, not provider-specific
15
- */
16
- id: string;
17
- /**
18
- * Provider's unique identifier in our system.
19
- * Example: "pvd_openai_2024", "pvd_anthropic_2024"
20
- * Links to Provider entity
21
- */
22
- providerId: string;
23
- /**
24
- * URL-friendly provider identifier for routing.
25
- * Examples: "openai", "anthropic", "google", "meta"
26
- * Used in API paths like /models/openai/gpt-4
27
- */
28
- providerSlug: string;
29
- /**
30
- * Human-readable provider name for display.
31
- * Examples: "OpenAI", "Anthropic", "Google AI", "Meta AI"
32
- */
33
- providerName: string;
34
- /**
35
- * Provider's specific model identifier as they define it.
36
- * Examples: "gpt-4-turbo-2024-04-09", "claude-3-opus-20240229"
37
- * This is what you use in their API calls
38
- */
39
- modelId: string;
40
- /**
41
- * Combined provider/model identifier for unique referencing.
42
- * Format: "{provider_slug}/{model_id}"
43
- * Examples: "openai/gpt-4", "anthropic/claude-3-opus"
44
- */
45
- slug: string;
46
- /**
47
- * Model's full technical name from the provider.
48
- * Examples: "gpt-4-turbo-2024-04-09", "claude-3-opus-20240229"
49
- * May include version dates or technical details
50
- */
51
- name: string;
52
- /**
53
- * User-friendly display name for UI presentation.
54
- * Examples: "GPT-4 Turbo", "Claude 3 Opus", "Gemini Pro"
55
- * Simplified version of technical name
56
- */
57
- displayName: string;
58
- /**
59
- * Human-readable description of the model's purpose and capabilities.
60
- * Example: "Most capable GPT-4 model, optimized for complex tasks requiring
61
- * advanced reasoning, coding, and creative writing. Supports vision, function
62
- * calling, and JSON mode."
63
- */
64
- description: string;
65
- /**
66
- * Model version string from provider.
67
- * Examples: "2024-04-09", "v1.0", "preview-0125"
68
- * May be date-based or semantic versioning
69
- */
70
- version: string;
71
- /**
72
- * When the model was publicly released by the provider.
73
- * Example: 2024-04-09 for GPT-4 Turbo April release
74
- */
75
- releaseDate: Date | undefined;
76
- /**
77
- * Last date of data used in training (knowledge cutoff).
78
- * Example: 2023-12-01 means model knows events up to this date
79
- * Important for factual queries and current events
80
- */
81
- trainingDataCutoff: Date | undefined;
82
- /**
83
- * When the model will be/was deprecated (if scheduled).
84
- * Example: 2025-01-15 for planned sunset
85
- * Null if no deprecation planned
86
- */
87
- deprecationDate: Date | undefined;
88
- /**
89
- * List of specific capabilities this model supports.
90
- * Examples: text_generation, function_calling, vision, code_interpreter
91
- * See capabilities.proto for full enumeration
92
- */
93
- capabilities: Capability[];
94
- /**
95
- * Model type, architecture, and licensing classification.
96
- * Categorizes the model for filtering and comparison
97
- */
98
- classification: ModelClassification | undefined;
99
- /**
100
- * Benchmark scores and performance metrics.
101
- * Standardized scores for comparing model capabilities
102
- */
103
- performance: ModelPerformance | undefined;
104
- /**
105
- * Token limits, processing speed, and tokenizer information.
106
- * Critical for understanding model constraints
107
- */
108
- tokens: TokenInfo | undefined;
109
- /**
110
- * Complete pricing structure for all operations.
111
- * Includes standard, batch, cached, and tool pricing
112
- */
113
- pricing: Pricing | undefined;
114
- /**
115
- * Supported parameter ranges for generation.
116
- * Temperature, top_p, and other sampling parameters
117
- */
118
- configuration: Configuration | undefined;
119
- /**
120
- * API endpoint information and rate limits.
121
- * Everything needed to call the model programmatically
122
- */
123
- apiDetails: APIDetails | undefined;
124
- /**
125
- * Available regions and platforms.
126
- * Where and how the model can be accessed
127
- */
128
- availability: Availability | undefined;
129
- /**
130
- * Technical architecture information.
131
- * Transformer type, layer count, attention mechanism, etc.
132
- */
133
- architecture: Architecture | undefined;
134
- /**
135
- * Training dataset and methodology information.
136
- * How the model was trained and on what data
137
- */
138
- training: Training | undefined;
139
- /**
140
- * Built-in safety features and content filtering.
141
- * Moderation capabilities and safety guardrails
142
- */
143
- safety: Safety | undefined;
144
- /**
145
- * License type and usage restrictions.
146
- * Legal terms for using the model
147
- */
148
- licensing: Licensing | undefined;
149
- /**
150
- * Hardware requirements and technical details.
151
- * Memory, compute requirements for self-hosting
152
- */
153
- technicalSpecs: TechnicalSpecs | undefined;
154
- /**
155
- * When this model information was last updated in our system.
156
- * Example: 2024-08-25T10:30:00Z
157
- * For tracking data freshness
158
- */
159
- lastScrapedAt: Date | undefined;
160
- /**
161
- * Sources where this model information was collected from.
162
- * Examples: ["https://openai.com/pricing", "https://platform.openai.com/docs"]
163
- * For data provenance and verification
164
- */
165
- dataSources: string[];
166
- /**
167
- * Whether the model is currently available for use.
168
- * false if model is down, in maintenance, or discontinued
169
- */
170
- isActive: boolean;
171
- /**
172
- * Whether the model has been officially deprecated.
173
- * true once deprecation_date has passed or provider announces EOL
174
- */
175
- isDeprecated: boolean;
176
- /**
177
- * If deprecated, the recommended replacement model's ID.
178
- * Example: "mdl_gpt4_turbo_2024" replacing "mdl_gpt4_2023"
179
- * Helps with migration paths
180
- */
181
- replacementModelId: string;
182
- }
183
- /** ModelClassification categorizes models for filtering and comparison. */
184
- export interface ModelClassification {
185
- /**
186
- * Primary model type defining its training approach.
187
- * Examples: "foundation", "fine-tuned", "instruct", "chat", "reasoning"
188
- * "foundation" = base model, "instruct" = instruction-following
189
- */
190
- modelType: string;
191
- /**
192
- * Underlying model architecture family.
193
- * Examples: "GPT", "LLaMA", "BERT", "T5", "Transformer", "Mamba"
194
- */
195
- architecture: string;
196
- /**
197
- * Approximate number of parameters in billions.
198
- * Examples: 7 (7B), 70 (70B), 175 (175B for GPT-3)
199
- */
200
- parameterCount: number;
201
- /**
202
- * Whether model weights are publicly available.
203
- * true for LLaMA, Mistral; false for GPT-4, Claude
204
- */
205
- isOpenSource: boolean;
206
- /**
207
- * Software license if open source.
208
- * Examples: "MIT", "Apache-2.0", "Custom", "Proprietary"
209
- */
210
- licenseType: string;
211
- }
212
- /** ModelPerformance captures standardized benchmark scores. */
213
- export interface ModelPerformance {
214
- /**
215
- * General reasoning ability score (0-10 scale).
216
- * Based on benchmarks like ARC, HellaSwag, MMLU
217
- * Example: 8.5 for strong reasoning models
218
- */
219
- reasoningScore: number;
220
- /**
221
- * Programming and code generation score (0-10).
222
- * Based on HumanEval, MBPP benchmarks
223
- * Example: 9.2 for specialized coding models
224
- */
225
- codingScore: number;
226
- /**
227
- * Creative writing and generation score (0-10).
228
- * Based on human evaluations and creative benchmarks
229
- * Example: 7.8 for models good at storytelling
230
- */
231
- creativeScore: number;
232
- /**
233
- * Factual accuracy and knowledge score (0-10).
234
- * Based on TruthfulQA, factual benchmarks
235
- * Example: 8.0 for models with good factual recall
236
- */
237
- factualScore: number;
238
- /**
239
- * Mathematical reasoning score (0-10).
240
- * Based on GSM8K, MATH benchmarks
241
- * Example: 9.5 for models excelling at math
242
- */
243
- mathScore: number;
244
- /**
245
- * Raw benchmark scores by name.
246
- * Keys: "mmlu", "humaneval", "gsm8k", "truthfulqa", "arc", "hellaswag"
247
- * Values: Actual benchmark scores (usually 0-100)
248
- * Example: {"mmlu": 86.4, "humaneval": 92.0, "gsm8k": 95.0}
249
- */
250
- benchmarkScores: {
251
- [key: string]: number;
252
- };
253
- }
254
- export interface ModelPerformance_BenchmarkScoresEntry {
255
- key: string;
256
- value: number;
257
- }
258
- /** TokenInfo describes token limits and processing capabilities. */
259
- export interface TokenInfo {
260
- /**
261
- * Maximum tokens the model can process in a single request.
262
- * Examples: 4096, 8192, 32768, 128000, 200000
263
- * Includes both input and output tokens
264
- */
265
- contextWindow: number;
266
- /**
267
- * Maximum tokens that can be generated in response.
268
- * Examples: 4096 for most models, 16384 for some
269
- * May be less than context_window
270
- */
271
- maxOutputTokens: number;
272
- /**
273
- * Tokenizer algorithm used.
274
- * Examples: "cl100k_base" (GPT-4), "claude", "sentencepiece"
275
- */
276
- tokenizer: string;
277
- /**
278
- * Average generation speed in tokens per second.
279
- * Example: 50 for typical API, 100+ for optimized inference
280
- * May vary based on load and tier
281
- */
282
- tokensPerSecond: number;
283
- }
284
- /** Configuration defines supported generation parameters. */
285
- export interface Configuration {
286
- /**
287
- * Minimum allowed temperature value.
288
- * Usually 0.0 for deterministic output
289
- */
290
- temperatureMin: number;
291
- /**
292
- * Maximum allowed temperature value.
293
- * Usually 1.0 or 2.0 for high randomness
294
- */
295
- temperatureMax: number;
296
- /**
297
- * Default temperature if not specified.
298
- * Typically 0.7 or 1.0
299
- */
300
- temperatureDefault: number;
301
- /**
302
- * Minimum allowed top_p (nucleus sampling).
303
- * Usually 0.0 to disable
304
- */
305
- topPMin: number;
306
- /**
307
- * Maximum allowed top_p value.
308
- * Usually 1.0 for full vocabulary
309
- */
310
- topPMax: number;
311
- }
312
- /** APIDetails provides integration information. */
313
- export interface APIDetails {
314
- /**
315
- * Base API endpoint URL.
316
- * Example: "https://api.openai.com/v1/chat/completions"
317
- */
318
- endpoint: string;
319
- /**
320
- * API version identifier.
321
- * Examples: "v1", "2024-02-01", "beta"
322
- */
323
- version: string;
324
- /**
325
- * Rate limit in requests per minute.
326
- * Example: 500 for standard tier, 10000 for enterprise
327
- */
328
- rateLimitRpm: number;
329
- /**
330
- * Rate limit in tokens per minute.
331
- * Example: 90000 for GPT-4, 200000 for GPT-3.5
332
- */
333
- rateLimitTpm: number;
334
- }
335
- /** Availability describes where the model can be accessed. */
336
- export interface Availability {
337
- /**
338
- * Geographic regions where available.
339
- * Examples: ["us-east-1", "eu-west-1", "asia-pacific"]
340
- * May use provider-specific region codes
341
- */
342
- regions: string[];
343
- /**
344
- * Platforms/services offering the model.
345
- * Examples: ["api", "playground", "azure", "vertex-ai", "bedrock"]
346
- */
347
- platforms: string[];
348
- }
349
- export declare const Model: MessageFns<Model>;
350
- export declare const ModelClassification: MessageFns<ModelClassification>;
351
- export declare const ModelPerformance: MessageFns<ModelPerformance>;
352
- export declare const ModelPerformance_BenchmarkScoresEntry: MessageFns<ModelPerformance_BenchmarkScoresEntry>;
353
- export declare const TokenInfo: MessageFns<TokenInfo>;
354
- export declare const Configuration: MessageFns<Configuration>;
355
- export declare const APIDetails: MessageFns<APIDetails>;
356
- export declare const Availability: MessageFns<Availability>;
357
- type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
358
- 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 {} ? {
359
- [K in keyof T]?: DeepPartial<T[K]>;
360
- } : Partial<T>;
361
- type KeysOfUnion<T> = T extends T ? keyof T : never;
362
- export type Exact<P, I extends P> = P extends Builtin ? P : P & {
363
- [K in keyof P]: Exact<P[K], I[K]>;
364
- } & {
365
- [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
366
- };
367
- export interface MessageFns<T> {
368
- encode(message: T, writer?: BinaryWriter): BinaryWriter;
369
- decode(input: BinaryReader | Uint8Array, length?: number): T;
370
- fromJSON(object: any): T;
371
- toJSON(message: T): unknown;
372
- create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
373
- fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
374
- }
375
- export {};