weave-typescript 0.4.4 → 0.5.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/google/protobuf/timestamp.pb.d.ts +128 -0
- package/dist/google/protobuf/timestamp.pb.js +93 -0
- package/dist/weaveapi/auth/v1/service.pb.d.ts +705 -0
- package/dist/weaveapi/auth/v1/service.pb.js +3910 -0
- package/dist/weaveapi/auth/v1/session.pb.d.ts +43 -0
- package/dist/weaveapi/auth/v1/session.pb.js +268 -0
- package/dist/weaveapi/auth/v1/usage.pb.d.ts +76 -0
- package/dist/weaveapi/auth/v1/usage.pb.js +761 -0
- package/dist/weaveapi/auth/v1/user.pb.d.ts +141 -0
- package/dist/weaveapi/auth/v1/user.pb.js +1439 -0
- package/dist/weaveapi/modex/v1/model.pb.d.ts +147 -0
- package/dist/weaveapi/modex/v1/model.pb.js +1655 -0
- package/dist/weaveapi/modex/v1/provider.pb.d.ts +35 -0
- package/dist/weaveapi/modex/v1/provider.pb.js +252 -0
- package/dist/weaveapi/modex/v1/service.pb.d.ts +517 -0
- package/dist/weaveapi/modex/v1/service.pb.js +4431 -0
- package/dist/weaveapi/payment/v1/invoice.pb.d.ts +92 -0
- package/dist/weaveapi/payment/v1/invoice.pb.js +899 -0
- package/dist/weaveapi/payment/v1/service.pb.d.ts +657 -0
- package/dist/weaveapi/payment/v1/service.pb.js +4153 -0
- package/dist/weaveapi/payment/v1/subscription.pb.d.ts +167 -0
- package/dist/weaveapi/payment/v1/subscription.pb.js +1747 -0
- package/package.json +1 -1
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
+
export declare const protobufPackage = "weaveapi.modex.v1";
|
|
3
|
+
export interface Model {
|
|
4
|
+
id: string;
|
|
5
|
+
providerId: string;
|
|
6
|
+
providerSlug: string;
|
|
7
|
+
providerName: string;
|
|
8
|
+
modelId: string;
|
|
9
|
+
/** provider/model_id */
|
|
10
|
+
slug: string;
|
|
11
|
+
name: string;
|
|
12
|
+
displayName: string;
|
|
13
|
+
description: string;
|
|
14
|
+
version: string;
|
|
15
|
+
/** Dates */
|
|
16
|
+
releaseDate: Date | undefined;
|
|
17
|
+
trainingDataCutoff: Date | undefined;
|
|
18
|
+
deprecationDate: Date | undefined;
|
|
19
|
+
/** Capabilities */
|
|
20
|
+
capabilities: ModelCapabilities | undefined;
|
|
21
|
+
/** Classification */
|
|
22
|
+
classification: ModelClassification | undefined;
|
|
23
|
+
/** Performance */
|
|
24
|
+
performance: ModelPerformance | undefined;
|
|
25
|
+
/** Tokens */
|
|
26
|
+
tokens: TokenInfo | undefined;
|
|
27
|
+
/** Pricing */
|
|
28
|
+
pricing: Pricing | undefined;
|
|
29
|
+
/** Configuration */
|
|
30
|
+
configuration: Configuration | undefined;
|
|
31
|
+
/** API Details */
|
|
32
|
+
apiDetails: APIDetails | undefined;
|
|
33
|
+
/** Availability */
|
|
34
|
+
availability: Availability | undefined;
|
|
35
|
+
/** Metadata */
|
|
36
|
+
lastScrapedAt: Date | undefined;
|
|
37
|
+
dataSources: string[];
|
|
38
|
+
isActive: boolean;
|
|
39
|
+
isDeprecated: boolean;
|
|
40
|
+
replacementModelId: string;
|
|
41
|
+
createdAt: Date | undefined;
|
|
42
|
+
updatedAt: Date | undefined;
|
|
43
|
+
}
|
|
44
|
+
export interface ModelCapabilities {
|
|
45
|
+
supportsChat: boolean;
|
|
46
|
+
supportsCompletion: boolean;
|
|
47
|
+
supportsEmbeddings: boolean;
|
|
48
|
+
supportsVision: boolean;
|
|
49
|
+
supportsAudio: boolean;
|
|
50
|
+
supportsVideo: boolean;
|
|
51
|
+
supportsToolCalls: boolean;
|
|
52
|
+
supportsFunctionCalls: boolean;
|
|
53
|
+
supportsJsonMode: boolean;
|
|
54
|
+
supportsStreaming: boolean;
|
|
55
|
+
supportsReasoning: boolean;
|
|
56
|
+
inputModalities: string[];
|
|
57
|
+
outputModalities: string[];
|
|
58
|
+
}
|
|
59
|
+
export interface ModelClassification {
|
|
60
|
+
/** foundation, fine-tuned, instruct, chat, reasoning */
|
|
61
|
+
modelType: string;
|
|
62
|
+
/** GPT, LLaMA, BERT, etc */
|
|
63
|
+
architecture: string;
|
|
64
|
+
parameterCount: number;
|
|
65
|
+
isOpenSource: boolean;
|
|
66
|
+
licenseType: string;
|
|
67
|
+
}
|
|
68
|
+
export interface ModelPerformance {
|
|
69
|
+
/** 0-10 */
|
|
70
|
+
reasoningScore: number;
|
|
71
|
+
codingScore: number;
|
|
72
|
+
creativeScore: number;
|
|
73
|
+
factualScore: number;
|
|
74
|
+
mathScore: number;
|
|
75
|
+
/** mmlu, humaneval, etc */
|
|
76
|
+
benchmarkScores: {
|
|
77
|
+
[key: string]: number;
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
export interface ModelPerformance_BenchmarkScoresEntry {
|
|
81
|
+
key: string;
|
|
82
|
+
value: number;
|
|
83
|
+
}
|
|
84
|
+
export interface TokenInfo {
|
|
85
|
+
contextWindow: number;
|
|
86
|
+
maxOutputTokens: number;
|
|
87
|
+
tokenizer: string;
|
|
88
|
+
tokensPerSecond: number;
|
|
89
|
+
}
|
|
90
|
+
export interface Pricing {
|
|
91
|
+
/** per 1M tokens */
|
|
92
|
+
inputPrice: number;
|
|
93
|
+
outputPrice: number;
|
|
94
|
+
cacheReadPrice: number;
|
|
95
|
+
cacheWritePrice: number;
|
|
96
|
+
fineTuningPrice: number;
|
|
97
|
+
/** USD */
|
|
98
|
+
currency: string;
|
|
99
|
+
}
|
|
100
|
+
export interface Configuration {
|
|
101
|
+
temperatureMin: number;
|
|
102
|
+
temperatureMax: number;
|
|
103
|
+
temperatureDefault: number;
|
|
104
|
+
topPMin: number;
|
|
105
|
+
topPMax: number;
|
|
106
|
+
}
|
|
107
|
+
export interface APIDetails {
|
|
108
|
+
endpoint: string;
|
|
109
|
+
version: string;
|
|
110
|
+
/** requests per minute */
|
|
111
|
+
rateLimitRpm: number;
|
|
112
|
+
/** tokens per minute */
|
|
113
|
+
rateLimitTpm: number;
|
|
114
|
+
}
|
|
115
|
+
export interface Availability {
|
|
116
|
+
regions: string[];
|
|
117
|
+
platforms: string[];
|
|
118
|
+
}
|
|
119
|
+
export declare const Model: MessageFns<Model>;
|
|
120
|
+
export declare const ModelCapabilities: MessageFns<ModelCapabilities>;
|
|
121
|
+
export declare const ModelClassification: MessageFns<ModelClassification>;
|
|
122
|
+
export declare const ModelPerformance: MessageFns<ModelPerformance>;
|
|
123
|
+
export declare const ModelPerformance_BenchmarkScoresEntry: MessageFns<ModelPerformance_BenchmarkScoresEntry>;
|
|
124
|
+
export declare const TokenInfo: MessageFns<TokenInfo>;
|
|
125
|
+
export declare const Pricing: MessageFns<Pricing>;
|
|
126
|
+
export declare const Configuration: MessageFns<Configuration>;
|
|
127
|
+
export declare const APIDetails: MessageFns<APIDetails>;
|
|
128
|
+
export declare const Availability: MessageFns<Availability>;
|
|
129
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
130
|
+
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 {} ? {
|
|
131
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
132
|
+
} : Partial<T>;
|
|
133
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
134
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
135
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
136
|
+
} & {
|
|
137
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
138
|
+
};
|
|
139
|
+
export interface MessageFns<T> {
|
|
140
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
141
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
142
|
+
fromJSON(object: any): T;
|
|
143
|
+
toJSON(message: T): unknown;
|
|
144
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
145
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
146
|
+
}
|
|
147
|
+
export {};
|