weave-typescript 0.5.1 → 0.9.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 (33) hide show
  1. package/dist/weaveapi/llmx/v1/architecture.pb.d.ts +377 -0
  2. package/dist/weaveapi/llmx/v1/architecture.pb.js +2756 -0
  3. package/dist/weaveapi/llmx/v1/capabilities.pb.d.ts +491 -0
  4. package/dist/weaveapi/llmx/v1/capabilities.pb.js +3159 -0
  5. package/dist/weaveapi/{modex → llmx}/v1/model.pb.d.ts +86 -42
  6. package/dist/weaveapi/{modex → llmx}/v1/model.pb.js +119 -442
  7. package/dist/weaveapi/llmx/v1/pricing.pb.d.ts +142 -0
  8. package/dist/weaveapi/llmx/v1/pricing.pb.js +825 -0
  9. package/dist/weaveapi/{modex → llmx}/v1/provider.pb.d.ts +1 -3
  10. package/dist/weaveapi/{modex → llmx}/v1/provider.pb.js +3 -57
  11. package/dist/weaveapi/{modex → llmx}/v1/service.pb.d.ts +20 -20
  12. package/dist/weaveapi/{modex → llmx}/v1/service.pb.js +17 -17
  13. package/dist/weavesql/llmxdb/capabilities_sql.d.ts +151 -0
  14. package/dist/weavesql/llmxdb/capabilities_sql.js +241 -0
  15. package/dist/weavesql/llmxdb/changes_sql.d.ts +81 -0
  16. package/dist/weavesql/llmxdb/changes_sql.js +118 -0
  17. package/dist/weavesql/llmxdb/models_sql.d.ts +198 -0
  18. package/dist/weavesql/llmxdb/models_sql.js +244 -0
  19. package/dist/weavesql/llmxdb/providers_sql.d.ts +122 -0
  20. package/dist/weavesql/llmxdb/providers_sql.js +179 -0
  21. package/dist/weavesql/llmxdb/scraper_runs_sql.d.ts +83 -0
  22. package/dist/weavesql/llmxdb/scraper_runs_sql.js +137 -0
  23. package/dist/weavesql/llmxdb/search_sql.d.ts +272 -0
  24. package/dist/weavesql/llmxdb/search_sql.js +348 -0
  25. package/dist/weavesql/weavedb/dataset_sql.d.ts +17 -0
  26. package/dist/weavesql/weavedb/dataset_sql.js +21 -0
  27. package/dist/weavesql/weavedb/relationships_sql.d.ts +16 -0
  28. package/dist/weavesql/weavedb/relationships_sql.js +32 -0
  29. package/dist/weavesql/weavedb/storage_sql.d.ts +33 -0
  30. package/dist/weavesql/weavedb/storage_sql.js +54 -0
  31. package/dist/weavesql/weavedb/synthesizer_sql.d.ts +28 -0
  32. package/dist/weavesql/weavedb/synthesizer_sql.js +42 -0
  33. package/package.json +4 -1
@@ -0,0 +1,142 @@
1
+ import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
+ export declare const protobufPackage = "weaveapi.llmx.v1";
3
+ export declare enum PricingCategory {
4
+ PRICING_CATEGORY_UNSPECIFIED = 0,
5
+ PRICING_CATEGORY_TEXT = 1,
6
+ PRICING_CATEGORY_IMAGE = 2,
7
+ PRICING_CATEGORY_AUDIO = 3,
8
+ PRICING_CATEGORY_EMBEDDING = 4,
9
+ PRICING_CATEGORY_FINE_TUNING = 5,
10
+ /** PRICING_CATEGORY_TOOL - Built-in or add-on tools (e.g., Web Search, File Search, Code Interpreter) */
11
+ PRICING_CATEGORY_TOOL = 6,
12
+ /** PRICING_CATEGORY_REALTIME - Realtime/streaming modalities */
13
+ PRICING_CATEGORY_REALTIME = 7,
14
+ /** PRICING_CATEGORY_MODERATION - Moderation models */
15
+ PRICING_CATEGORY_MODERATION = 8,
16
+ /** PRICING_CATEGORY_LEGACY - Legacy pricing entries */
17
+ PRICING_CATEGORY_LEGACY = 9,
18
+ UNRECOGNIZED = -1
19
+ }
20
+ export declare function pricingCategoryFromJSON(object: any): PricingCategory;
21
+ export declare function pricingCategoryToJSON(object: PricingCategory): string;
22
+ export declare enum PricingTier {
23
+ PRICING_TIER_UNSPECIFIED = 0,
24
+ PRICING_TIER_FREE = 1,
25
+ PRICING_TIER_BATCH = 2,
26
+ PRICING_TIER_FLEX = 3,
27
+ PRICING_TIER_STANDARD = 4,
28
+ PRICING_TIER_PRIORITY = 5,
29
+ PRICING_TIER_ENTERPRISE = 6,
30
+ UNRECOGNIZED = -1
31
+ }
32
+ export declare function pricingTierFromJSON(object: any): PricingTier;
33
+ export declare function pricingTierToJSON(object: PricingTier): string;
34
+ export declare enum Operation {
35
+ OPERATION_UNSPECIFIED = 0,
36
+ /** OPERATION_INPUT - Prompt/input tokens */
37
+ OPERATION_INPUT = 1,
38
+ /** OPERATION_OUTPUT - Completion/output tokens */
39
+ OPERATION_OUTPUT = 2,
40
+ /** OPERATION_CACHED_INPUT - Discounted cached input */
41
+ OPERATION_CACHED_INPUT = 3,
42
+ /** OPERATION_CACHE_READ - Cache read (if priced separately) */
43
+ OPERATION_CACHE_READ = 4,
44
+ /** OPERATION_CACHE_WRITE - Cache write (if priced separately) */
45
+ OPERATION_CACHE_WRITE = 5,
46
+ /** OPERATION_TRAINING - Fine-tuning training tokens or hourly training */
47
+ OPERATION_TRAINING = 6,
48
+ /** OPERATION_STORAGE - General storage cost (if applicable) */
49
+ OPERATION_STORAGE = 7,
50
+ /** OPERATION_CONTEXT_CACHE_STORAGE - Context cache storage per hour */
51
+ OPERATION_CONTEXT_CACHE_STORAGE = 8,
52
+ /** OPERATION_PER_CALL - Fixed price per API call */
53
+ OPERATION_PER_CALL = 9,
54
+ /** OPERATION_PER_CONTAINER - For containerized tools (e.g., Code Interpreter) */
55
+ OPERATION_PER_CONTAINER = 10,
56
+ UNRECOGNIZED = -1
57
+ }
58
+ export declare function operationFromJSON(object: any): Operation;
59
+ export declare function operationToJSON(object: Operation): string;
60
+ export declare enum PriceUnit {
61
+ PRICE_UNIT_UNSPECIFIED = 0,
62
+ PRICE_UNIT_PER_1M_TOKENS = 1,
63
+ PRICE_UNIT_PER_IMAGE = 2,
64
+ PRICE_UNIT_PER_MINUTE = 3,
65
+ PRICE_UNIT_PER_1M_CHARACTERS = 4,
66
+ PRICE_UNIT_PER_CALL = 5,
67
+ PRICE_UNIT_PER_GB_DAY = 6,
68
+ PRICE_UNIT_PER_HOUR = 7,
69
+ PRICE_UNIT_PER_1K_CALLS = 8,
70
+ UNRECOGNIZED = -1
71
+ }
72
+ export declare function priceUnitFromJSON(object: any): PriceUnit;
73
+ export declare function priceUnitToJSON(object: PriceUnit): string;
74
+ export interface Pricing {
75
+ /** e.g., "USD" */
76
+ currency: string;
77
+ /** All pricing entries for this model */
78
+ items: PricingItem[];
79
+ /** Optional extra info (e.g., links, footnotes) */
80
+ metadata: {
81
+ [key: string]: string;
82
+ };
83
+ }
84
+ export interface Pricing_MetadataEntry {
85
+ key: string;
86
+ value: string;
87
+ }
88
+ export interface TokenBand {
89
+ /** Optional banding for tiered pricing like "<= 200k" vs "> 200k" prompt tokens */
90
+ minPromptTokens: number;
91
+ /** inclusive, 0 if unlimited/not applicable */
92
+ maxPromptTokens: number;
93
+ }
94
+ export interface PricingItem {
95
+ /** e.g., TEXT, IMAGE, AUDIO, TOOL */
96
+ category: PricingCategory;
97
+ /** e.g., STANDARD, FLEX, BATCH, PRIORITY */
98
+ tier: PricingTier;
99
+ /** e.g., INPUT, OUTPUT, TRAINING, PER_CALL */
100
+ operation: Operation;
101
+ /** Cost for the specified unit below */
102
+ price: number;
103
+ /** How price is measured (per 1M tokens, per image, etc.) */
104
+ unit: PriceUnit;
105
+ /** Qualifiers/metadata to disambiguate specific variants */
106
+ quality: string;
107
+ /** e.g., 1024x1024 */
108
+ resolution: string;
109
+ /** e.g., <=200k vs >200k prompt tokens */
110
+ tokenBand: TokenBand | undefined;
111
+ /** if outputs include thinking/hidden tokens */
112
+ includesThinkingTokens: boolean;
113
+ /** e.g., WebSearch, FileSearch, CodeInterpreter */
114
+ toolName: string;
115
+ /** e.g., "text", "audio" (for transcription/tts token accounting) */
116
+ tokenType: string;
117
+ /** free-form clarifications */
118
+ notes: string;
119
+ }
120
+ export declare const Pricing: MessageFns<Pricing>;
121
+ export declare const Pricing_MetadataEntry: MessageFns<Pricing_MetadataEntry>;
122
+ export declare const TokenBand: MessageFns<TokenBand>;
123
+ export declare const PricingItem: MessageFns<PricingItem>;
124
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
125
+ 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 {} ? {
126
+ [K in keyof T]?: DeepPartial<T[K]>;
127
+ } : Partial<T>;
128
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
129
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
130
+ [K in keyof P]: Exact<P[K], I[K]>;
131
+ } & {
132
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
133
+ };
134
+ export interface MessageFns<T> {
135
+ encode(message: T, writer?: BinaryWriter): BinaryWriter;
136
+ decode(input: BinaryReader | Uint8Array, length?: number): T;
137
+ fromJSON(object: any): T;
138
+ toJSON(message: T): unknown;
139
+ create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
140
+ fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
141
+ }
142
+ export {};