weave-typescript 0.8.0 → 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.
- package/dist/weaveapi/llmx/v1/capabilities.pb.d.ts +188 -17
- package/dist/weaveapi/llmx/v1/capabilities.pb.js +438 -162
- package/dist/weaveapi/llmx/v1/model.pb.d.ts +1 -11
- package/dist/weaveapi/llmx/v1/model.pb.js +7 -135
- package/dist/weaveapi/llmx/v1/pricing.pb.d.ts +142 -0
- package/dist/weaveapi/llmx/v1/pricing.pb.js +825 -0
- package/package.json +1 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
2
|
import { Architecture, Licensing, Safety, TechnicalSpecs, Training } from "./architecture.pb";
|
|
3
3
|
import { Capability } from "./capabilities.pb";
|
|
4
|
+
import { Pricing } from "./pricing.pb";
|
|
4
5
|
export declare const protobufPackage = "weaveapi.llmx.v1";
|
|
5
6
|
export interface Model {
|
|
6
7
|
/** Unique internal identifier for this model record in our database */
|
|
@@ -142,16 +143,6 @@ export interface TokenInfo {
|
|
|
142
143
|
tokenizer: string;
|
|
143
144
|
tokensPerSecond: number;
|
|
144
145
|
}
|
|
145
|
-
export interface Pricing {
|
|
146
|
-
/** per 1M tokens */
|
|
147
|
-
inputPrice: number;
|
|
148
|
-
outputPrice: number;
|
|
149
|
-
cacheReadPrice: number;
|
|
150
|
-
cacheWritePrice: number;
|
|
151
|
-
fineTuningPrice: number;
|
|
152
|
-
/** USD */
|
|
153
|
-
currency: string;
|
|
154
|
-
}
|
|
155
146
|
export interface Configuration {
|
|
156
147
|
temperatureMin: number;
|
|
157
148
|
temperatureMax: number;
|
|
@@ -176,7 +167,6 @@ export declare const ModelClassification: MessageFns<ModelClassification>;
|
|
|
176
167
|
export declare const ModelPerformance: MessageFns<ModelPerformance>;
|
|
177
168
|
export declare const ModelPerformance_BenchmarkScoresEntry: MessageFns<ModelPerformance_BenchmarkScoresEntry>;
|
|
178
169
|
export declare const TokenInfo: MessageFns<TokenInfo>;
|
|
179
|
-
export declare const Pricing: MessageFns<Pricing>;
|
|
180
170
|
export declare const Configuration: MessageFns<Configuration>;
|
|
181
171
|
export declare const APIDetails: MessageFns<APIDetails>;
|
|
182
172
|
export declare const Availability: MessageFns<Availability>;
|
|
@@ -5,12 +5,13 @@
|
|
|
5
5
|
// protoc unknown
|
|
6
6
|
// source: weaveapi/llmx/v1/model.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.Availability = exports.APIDetails = exports.Configuration = exports.
|
|
8
|
+
exports.Availability = exports.APIDetails = exports.Configuration = exports.TokenInfo = exports.ModelPerformance_BenchmarkScoresEntry = exports.ModelPerformance = exports.ModelClassification = exports.Model = exports.protobufPackage = void 0;
|
|
9
9
|
/* eslint-disable */
|
|
10
10
|
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
11
11
|
const timestamp_pb_1 = require("../../../google/protobuf/timestamp.pb");
|
|
12
12
|
const architecture_pb_1 = require("./architecture.pb");
|
|
13
13
|
const capabilities_pb_1 = require("./capabilities.pb");
|
|
14
|
+
const pricing_pb_1 = require("./pricing.pb");
|
|
14
15
|
exports.protobufPackage = "weaveapi.llmx.v1";
|
|
15
16
|
function createBaseModel() {
|
|
16
17
|
return {
|
|
@@ -101,7 +102,7 @@ exports.Model = {
|
|
|
101
102
|
exports.TokenInfo.encode(message.tokens, writer.uint32(138).fork()).join();
|
|
102
103
|
}
|
|
103
104
|
if (message.pricing !== undefined) {
|
|
104
|
-
|
|
105
|
+
pricing_pb_1.Pricing.encode(message.pricing, writer.uint32(146).fork()).join();
|
|
105
106
|
}
|
|
106
107
|
if (message.configuration !== undefined) {
|
|
107
108
|
exports.Configuration.encode(message.configuration, writer.uint32(154).fork()).join();
|
|
@@ -274,7 +275,7 @@ exports.Model = {
|
|
|
274
275
|
if (tag !== 146) {
|
|
275
276
|
break;
|
|
276
277
|
}
|
|
277
|
-
message.pricing =
|
|
278
|
+
message.pricing = pricing_pb_1.Pricing.decode(reader, reader.uint32());
|
|
278
279
|
continue;
|
|
279
280
|
}
|
|
280
281
|
case 19: {
|
|
@@ -397,7 +398,7 @@ exports.Model = {
|
|
|
397
398
|
classification: isSet(object.classification) ? exports.ModelClassification.fromJSON(object.classification) : undefined,
|
|
398
399
|
performance: isSet(object.performance) ? exports.ModelPerformance.fromJSON(object.performance) : undefined,
|
|
399
400
|
tokens: isSet(object.tokens) ? exports.TokenInfo.fromJSON(object.tokens) : undefined,
|
|
400
|
-
pricing: isSet(object.pricing) ?
|
|
401
|
+
pricing: isSet(object.pricing) ? pricing_pb_1.Pricing.fromJSON(object.pricing) : undefined,
|
|
401
402
|
configuration: isSet(object.configuration) ? exports.Configuration.fromJSON(object.configuration) : undefined,
|
|
402
403
|
apiDetails: isSet(object.apiDetails) ? exports.APIDetails.fromJSON(object.apiDetails) : undefined,
|
|
403
404
|
availability: isSet(object.availability) ? exports.Availability.fromJSON(object.availability) : undefined,
|
|
@@ -470,7 +471,7 @@ exports.Model = {
|
|
|
470
471
|
obj.tokens = exports.TokenInfo.toJSON(message.tokens);
|
|
471
472
|
}
|
|
472
473
|
if (message.pricing !== undefined) {
|
|
473
|
-
obj.pricing =
|
|
474
|
+
obj.pricing = pricing_pb_1.Pricing.toJSON(message.pricing);
|
|
474
475
|
}
|
|
475
476
|
if (message.configuration !== undefined) {
|
|
476
477
|
obj.configuration = exports.Configuration.toJSON(message.configuration);
|
|
@@ -543,7 +544,7 @@ exports.Model = {
|
|
|
543
544
|
? exports.TokenInfo.fromPartial(object.tokens)
|
|
544
545
|
: undefined;
|
|
545
546
|
message.pricing = (object.pricing !== undefined && object.pricing !== null)
|
|
546
|
-
?
|
|
547
|
+
? pricing_pb_1.Pricing.fromPartial(object.pricing)
|
|
547
548
|
: undefined;
|
|
548
549
|
message.configuration = (object.configuration !== undefined && object.configuration !== null)
|
|
549
550
|
? exports.Configuration.fromPartial(object.configuration)
|
|
@@ -1007,135 +1008,6 @@ exports.TokenInfo = {
|
|
|
1007
1008
|
return message;
|
|
1008
1009
|
},
|
|
1009
1010
|
};
|
|
1010
|
-
function createBasePricing() {
|
|
1011
|
-
return { inputPrice: 0, outputPrice: 0, cacheReadPrice: 0, cacheWritePrice: 0, fineTuningPrice: 0, currency: "" };
|
|
1012
|
-
}
|
|
1013
|
-
exports.Pricing = {
|
|
1014
|
-
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1015
|
-
if (message.inputPrice !== 0) {
|
|
1016
|
-
writer.uint32(9).double(message.inputPrice);
|
|
1017
|
-
}
|
|
1018
|
-
if (message.outputPrice !== 0) {
|
|
1019
|
-
writer.uint32(17).double(message.outputPrice);
|
|
1020
|
-
}
|
|
1021
|
-
if (message.cacheReadPrice !== 0) {
|
|
1022
|
-
writer.uint32(25).double(message.cacheReadPrice);
|
|
1023
|
-
}
|
|
1024
|
-
if (message.cacheWritePrice !== 0) {
|
|
1025
|
-
writer.uint32(33).double(message.cacheWritePrice);
|
|
1026
|
-
}
|
|
1027
|
-
if (message.fineTuningPrice !== 0) {
|
|
1028
|
-
writer.uint32(41).double(message.fineTuningPrice);
|
|
1029
|
-
}
|
|
1030
|
-
if (message.currency !== "") {
|
|
1031
|
-
writer.uint32(50).string(message.currency);
|
|
1032
|
-
}
|
|
1033
|
-
return writer;
|
|
1034
|
-
},
|
|
1035
|
-
decode(input, length) {
|
|
1036
|
-
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1037
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1038
|
-
const message = createBasePricing();
|
|
1039
|
-
while (reader.pos < end) {
|
|
1040
|
-
const tag = reader.uint32();
|
|
1041
|
-
switch (tag >>> 3) {
|
|
1042
|
-
case 1: {
|
|
1043
|
-
if (tag !== 9) {
|
|
1044
|
-
break;
|
|
1045
|
-
}
|
|
1046
|
-
message.inputPrice = reader.double();
|
|
1047
|
-
continue;
|
|
1048
|
-
}
|
|
1049
|
-
case 2: {
|
|
1050
|
-
if (tag !== 17) {
|
|
1051
|
-
break;
|
|
1052
|
-
}
|
|
1053
|
-
message.outputPrice = reader.double();
|
|
1054
|
-
continue;
|
|
1055
|
-
}
|
|
1056
|
-
case 3: {
|
|
1057
|
-
if (tag !== 25) {
|
|
1058
|
-
break;
|
|
1059
|
-
}
|
|
1060
|
-
message.cacheReadPrice = reader.double();
|
|
1061
|
-
continue;
|
|
1062
|
-
}
|
|
1063
|
-
case 4: {
|
|
1064
|
-
if (tag !== 33) {
|
|
1065
|
-
break;
|
|
1066
|
-
}
|
|
1067
|
-
message.cacheWritePrice = reader.double();
|
|
1068
|
-
continue;
|
|
1069
|
-
}
|
|
1070
|
-
case 5: {
|
|
1071
|
-
if (tag !== 41) {
|
|
1072
|
-
break;
|
|
1073
|
-
}
|
|
1074
|
-
message.fineTuningPrice = reader.double();
|
|
1075
|
-
continue;
|
|
1076
|
-
}
|
|
1077
|
-
case 6: {
|
|
1078
|
-
if (tag !== 50) {
|
|
1079
|
-
break;
|
|
1080
|
-
}
|
|
1081
|
-
message.currency = reader.string();
|
|
1082
|
-
continue;
|
|
1083
|
-
}
|
|
1084
|
-
}
|
|
1085
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1086
|
-
break;
|
|
1087
|
-
}
|
|
1088
|
-
reader.skip(tag & 7);
|
|
1089
|
-
}
|
|
1090
|
-
return message;
|
|
1091
|
-
},
|
|
1092
|
-
fromJSON(object) {
|
|
1093
|
-
return {
|
|
1094
|
-
inputPrice: isSet(object.inputPrice) ? globalThis.Number(object.inputPrice) : 0,
|
|
1095
|
-
outputPrice: isSet(object.outputPrice) ? globalThis.Number(object.outputPrice) : 0,
|
|
1096
|
-
cacheReadPrice: isSet(object.cacheReadPrice) ? globalThis.Number(object.cacheReadPrice) : 0,
|
|
1097
|
-
cacheWritePrice: isSet(object.cacheWritePrice) ? globalThis.Number(object.cacheWritePrice) : 0,
|
|
1098
|
-
fineTuningPrice: isSet(object.fineTuningPrice) ? globalThis.Number(object.fineTuningPrice) : 0,
|
|
1099
|
-
currency: isSet(object.currency) ? globalThis.String(object.currency) : "",
|
|
1100
|
-
};
|
|
1101
|
-
},
|
|
1102
|
-
toJSON(message) {
|
|
1103
|
-
const obj = {};
|
|
1104
|
-
if (message.inputPrice !== 0) {
|
|
1105
|
-
obj.inputPrice = message.inputPrice;
|
|
1106
|
-
}
|
|
1107
|
-
if (message.outputPrice !== 0) {
|
|
1108
|
-
obj.outputPrice = message.outputPrice;
|
|
1109
|
-
}
|
|
1110
|
-
if (message.cacheReadPrice !== 0) {
|
|
1111
|
-
obj.cacheReadPrice = message.cacheReadPrice;
|
|
1112
|
-
}
|
|
1113
|
-
if (message.cacheWritePrice !== 0) {
|
|
1114
|
-
obj.cacheWritePrice = message.cacheWritePrice;
|
|
1115
|
-
}
|
|
1116
|
-
if (message.fineTuningPrice !== 0) {
|
|
1117
|
-
obj.fineTuningPrice = message.fineTuningPrice;
|
|
1118
|
-
}
|
|
1119
|
-
if (message.currency !== "") {
|
|
1120
|
-
obj.currency = message.currency;
|
|
1121
|
-
}
|
|
1122
|
-
return obj;
|
|
1123
|
-
},
|
|
1124
|
-
create(base) {
|
|
1125
|
-
return exports.Pricing.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1126
|
-
},
|
|
1127
|
-
fromPartial(object) {
|
|
1128
|
-
var _a, _b, _c, _d, _e, _f;
|
|
1129
|
-
const message = createBasePricing();
|
|
1130
|
-
message.inputPrice = (_a = object.inputPrice) !== null && _a !== void 0 ? _a : 0;
|
|
1131
|
-
message.outputPrice = (_b = object.outputPrice) !== null && _b !== void 0 ? _b : 0;
|
|
1132
|
-
message.cacheReadPrice = (_c = object.cacheReadPrice) !== null && _c !== void 0 ? _c : 0;
|
|
1133
|
-
message.cacheWritePrice = (_d = object.cacheWritePrice) !== null && _d !== void 0 ? _d : 0;
|
|
1134
|
-
message.fineTuningPrice = (_e = object.fineTuningPrice) !== null && _e !== void 0 ? _e : 0;
|
|
1135
|
-
message.currency = (_f = object.currency) !== null && _f !== void 0 ? _f : "";
|
|
1136
|
-
return message;
|
|
1137
|
-
},
|
|
1138
|
-
};
|
|
1139
1011
|
function createBaseConfiguration() {
|
|
1140
1012
|
return { temperatureMin: 0, temperatureMax: 0, temperatureDefault: 0, topPMin: 0, topPMax: 0 };
|
|
1141
1013
|
}
|
|
@@ -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 {};
|