@dailydotdev/schema 0.1.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/LICENSE +661 -0
- package/README.md +1 -0
- package/dist/bragi/pipelines_connect.cjs +133 -0
- package/dist/bragi/pipelines_connect.d.cts +113 -0
- package/dist/bragi/pipelines_connect.d.ts +113 -0
- package/dist/bragi/pipelines_connect.js +110 -0
- package/dist/bragi/pipelines_pb.cjs +842 -0
- package/dist/bragi/pipelines_pb.d.cts +467 -0
- package/dist/bragi/pipelines_pb.d.ts +467 -0
- package/dist/bragi/pipelines_pb.js +801 -0
- package/dist/bragi/proxy_connect.cjs +88 -0
- package/dist/bragi/proxy_connect.d.cts +68 -0
- package/dist/bragi/proxy_connect.d.ts +68 -0
- package/dist/bragi/proxy_connect.js +65 -0
- package/dist/bragi/proxy_pb.cjs +595 -0
- package/dist/bragi/proxy_pb.d.cts +332 -0
- package/dist/bragi/proxy_pb.d.ts +332 -0
- package/dist/bragi/proxy_pb.js +561 -0
- package/dist/daily-api/posts_connect.cjs +44 -0
- package/dist/daily-api/posts_connect.d.cts +24 -0
- package/dist/daily-api/posts_connect.d.ts +24 -0
- package/dist/daily-api/posts_connect.js +21 -0
- package/dist/daily-api/posts_pb.cjs +122 -0
- package/dist/daily-api/posts_pb.d.cts +50 -0
- package/dist/daily-api/posts_pb.d.ts +50 -0
- package/dist/daily-api/posts_pb.js +98 -0
- package/dist/feed/personalised/personalised_pb.cjs +122 -0
- package/dist/feed/personalised/personalised_pb.d.cts +50 -0
- package/dist/feed/personalised/personalised_pb.d.ts +50 -0
- package/dist/feed/personalised/personalised_pb.js +98 -0
- package/dist/index.cjs +39 -0
- package/dist/index.d.cts +11 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.js +10 -0
- package/dist/snotra/engagement/engagement_pb.cjs +201 -0
- package/dist/snotra/engagement/engagement_pb.d.cts +133 -0
- package/dist/snotra/engagement/engagement_pb.d.ts +133 -0
- package/dist/snotra/engagement/engagement_pb.js +175 -0
- package/dist/snotra/personalisation/personalisation_pb.cjs +431 -0
- package/dist/snotra/personalisation/personalisation_pb.d.cts +226 -0
- package/dist/snotra/personalisation/personalisation_pb.d.ts +226 -0
- package/dist/snotra/personalisation/personalisation_pb.js +400 -0
- package/dist/util/error_pb.cjs +71 -0
- package/dist/util/error_pb.d.cts +25 -0
- package/dist/util/error_pb.d.ts +25 -0
- package/dist/util/error_pb.js +48 -0
- package/package.json +44 -0
|
@@ -0,0 +1,332 @@
|
|
|
1
|
+
import { Message, PartialMessage, proto3, FieldList, BinaryReadOptions, JsonValue, JsonReadOptions, PlainMessage } from '@bufbuild/protobuf';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @generated from enum bragi.proxy.ModelProvider
|
|
5
|
+
*/
|
|
6
|
+
declare enum ModelProvider {
|
|
7
|
+
/**
|
|
8
|
+
* @generated from enum value: OpenAI = 0;
|
|
9
|
+
*/
|
|
10
|
+
OpenAI = 0,
|
|
11
|
+
/**
|
|
12
|
+
* @generated from enum value: Azure = 1;
|
|
13
|
+
*/
|
|
14
|
+
Azure = 1
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* @generated from message bragi.proxy.ChatMessage
|
|
18
|
+
*/
|
|
19
|
+
declare class ChatMessage extends Message<ChatMessage> {
|
|
20
|
+
/**
|
|
21
|
+
* @generated from field: string role = 1;
|
|
22
|
+
*/
|
|
23
|
+
role: string;
|
|
24
|
+
/**
|
|
25
|
+
* @generated from field: string content = 2;
|
|
26
|
+
*/
|
|
27
|
+
content: string;
|
|
28
|
+
constructor(data?: PartialMessage<ChatMessage>);
|
|
29
|
+
static readonly runtime: typeof proto3;
|
|
30
|
+
static readonly typeName = "bragi.proxy.ChatMessage";
|
|
31
|
+
static readonly fields: FieldList;
|
|
32
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ChatMessage;
|
|
33
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ChatMessage;
|
|
34
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ChatMessage;
|
|
35
|
+
static equals(a: ChatMessage | PlainMessage<ChatMessage> | undefined, b: ChatMessage | PlainMessage<ChatMessage> | undefined): boolean;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* @generated from message bragi.proxy.ChatDelta
|
|
39
|
+
*/
|
|
40
|
+
declare class ChatDelta extends Message<ChatDelta> {
|
|
41
|
+
/**
|
|
42
|
+
* @generated from field: google.protobuf.StringValue role = 1;
|
|
43
|
+
*/
|
|
44
|
+
role?: string;
|
|
45
|
+
/**
|
|
46
|
+
* @generated from field: google.protobuf.StringValue content = 2;
|
|
47
|
+
*/
|
|
48
|
+
content?: string;
|
|
49
|
+
constructor(data?: PartialMessage<ChatDelta>);
|
|
50
|
+
static readonly runtime: typeof proto3;
|
|
51
|
+
static readonly typeName = "bragi.proxy.ChatDelta";
|
|
52
|
+
static readonly fields: FieldList;
|
|
53
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ChatDelta;
|
|
54
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ChatDelta;
|
|
55
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ChatDelta;
|
|
56
|
+
static equals(a: ChatDelta | PlainMessage<ChatDelta> | undefined, b: ChatDelta | PlainMessage<ChatDelta> | undefined): boolean;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Usage statistics for cost estimation
|
|
60
|
+
*
|
|
61
|
+
* @generated from message bragi.proxy.Usage
|
|
62
|
+
*/
|
|
63
|
+
declare class Usage extends Message<Usage> {
|
|
64
|
+
/**
|
|
65
|
+
* @generated from field: uint32 prompt_tokens = 1;
|
|
66
|
+
*/
|
|
67
|
+
promptTokens: number;
|
|
68
|
+
/**
|
|
69
|
+
* @generated from field: uint32 completion_tokens = 2;
|
|
70
|
+
*/
|
|
71
|
+
completionTokens: number;
|
|
72
|
+
/**
|
|
73
|
+
* @generated from field: uint32 total_tokens = 3;
|
|
74
|
+
*/
|
|
75
|
+
totalTokens: number;
|
|
76
|
+
constructor(data?: PartialMessage<Usage>);
|
|
77
|
+
static readonly runtime: typeof proto3;
|
|
78
|
+
static readonly typeName = "bragi.proxy.Usage";
|
|
79
|
+
static readonly fields: FieldList;
|
|
80
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Usage;
|
|
81
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Usage;
|
|
82
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Usage;
|
|
83
|
+
static equals(a: Usage | PlainMessage<Usage> | undefined, b: Usage | PlainMessage<Usage> | undefined): boolean;
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* @generated from message bragi.proxy.CompletionRequest
|
|
87
|
+
*/
|
|
88
|
+
declare class CompletionRequest extends Message<CompletionRequest> {
|
|
89
|
+
/**
|
|
90
|
+
* Used to separate between different types of requests, mostly for future purposes (etc. search query, answer, content enrichment)
|
|
91
|
+
*
|
|
92
|
+
* @generated from field: string application = 1;
|
|
93
|
+
*/
|
|
94
|
+
application: string;
|
|
95
|
+
/**
|
|
96
|
+
* Model provider defaults to OpenAI
|
|
97
|
+
*
|
|
98
|
+
* @generated from field: bragi.proxy.ModelProvider provider = 2;
|
|
99
|
+
*/
|
|
100
|
+
provider: ModelProvider;
|
|
101
|
+
/**
|
|
102
|
+
* Model name
|
|
103
|
+
*
|
|
104
|
+
* @generated from field: string model = 3;
|
|
105
|
+
*/
|
|
106
|
+
model: string;
|
|
107
|
+
/**
|
|
108
|
+
* Prompt text
|
|
109
|
+
*
|
|
110
|
+
* @generated from field: string prompt = 4;
|
|
111
|
+
*/
|
|
112
|
+
prompt: string;
|
|
113
|
+
/**
|
|
114
|
+
* Max output tokens (optional)
|
|
115
|
+
*
|
|
116
|
+
* @generated from field: optional google.protobuf.UInt32Value max_tokens = 5;
|
|
117
|
+
*/
|
|
118
|
+
maxTokens?: number;
|
|
119
|
+
/**
|
|
120
|
+
* Model's temperature (optional)
|
|
121
|
+
*
|
|
122
|
+
* @generated from field: optional google.protobuf.FloatValue temperature = 6;
|
|
123
|
+
*/
|
|
124
|
+
temperature?: number;
|
|
125
|
+
constructor(data?: PartialMessage<CompletionRequest>);
|
|
126
|
+
static readonly runtime: typeof proto3;
|
|
127
|
+
static readonly typeName = "bragi.proxy.CompletionRequest";
|
|
128
|
+
static readonly fields: FieldList;
|
|
129
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CompletionRequest;
|
|
130
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CompletionRequest;
|
|
131
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CompletionRequest;
|
|
132
|
+
static equals(a: CompletionRequest | PlainMessage<CompletionRequest> | undefined, b: CompletionRequest | PlainMessage<CompletionRequest> | undefined): boolean;
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* @generated from message bragi.proxy.ChatRequest
|
|
136
|
+
*/
|
|
137
|
+
declare class ChatRequest extends Message<ChatRequest> {
|
|
138
|
+
/**
|
|
139
|
+
* Used to separate between different types of requests, mostly for future purposes (etc. search query, answer, content enrichment)
|
|
140
|
+
*
|
|
141
|
+
* @generated from field: string application = 1;
|
|
142
|
+
*/
|
|
143
|
+
application: string;
|
|
144
|
+
/**
|
|
145
|
+
* Model provider defaults to OpenAI
|
|
146
|
+
*
|
|
147
|
+
* @generated from field: bragi.proxy.ModelProvider provider = 2;
|
|
148
|
+
*/
|
|
149
|
+
provider: ModelProvider;
|
|
150
|
+
/**
|
|
151
|
+
* Model name
|
|
152
|
+
*
|
|
153
|
+
* @generated from field: string model = 3;
|
|
154
|
+
*/
|
|
155
|
+
model: string;
|
|
156
|
+
/**
|
|
157
|
+
* Array of messages
|
|
158
|
+
*
|
|
159
|
+
* @generated from field: repeated bragi.proxy.ChatMessage messages = 4;
|
|
160
|
+
*/
|
|
161
|
+
messages: ChatMessage[];
|
|
162
|
+
/**
|
|
163
|
+
* Max output tokens (optional)
|
|
164
|
+
*
|
|
165
|
+
* @generated from field: optional google.protobuf.UInt32Value max_tokens = 5;
|
|
166
|
+
*/
|
|
167
|
+
maxTokens?: number;
|
|
168
|
+
/**
|
|
169
|
+
* Model's temperature (optional)
|
|
170
|
+
*
|
|
171
|
+
* @generated from field: optional google.protobuf.FloatValue temperature = 6;
|
|
172
|
+
*/
|
|
173
|
+
temperature?: number;
|
|
174
|
+
constructor(data?: PartialMessage<ChatRequest>);
|
|
175
|
+
static readonly runtime: typeof proto3;
|
|
176
|
+
static readonly typeName = "bragi.proxy.ChatRequest";
|
|
177
|
+
static readonly fields: FieldList;
|
|
178
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ChatRequest;
|
|
179
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ChatRequest;
|
|
180
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ChatRequest;
|
|
181
|
+
static equals(a: ChatRequest | PlainMessage<ChatRequest> | undefined, b: ChatRequest | PlainMessage<ChatRequest> | undefined): boolean;
|
|
182
|
+
}
|
|
183
|
+
/**
|
|
184
|
+
* @generated from message bragi.proxy.ChatResponse
|
|
185
|
+
*/
|
|
186
|
+
declare class ChatResponse extends Message<ChatResponse> {
|
|
187
|
+
/**
|
|
188
|
+
* @generated from field: string id = 1;
|
|
189
|
+
*/
|
|
190
|
+
id: string;
|
|
191
|
+
/**
|
|
192
|
+
* @generated from field: bragi.proxy.ChatMessage message = 2;
|
|
193
|
+
*/
|
|
194
|
+
message?: ChatMessage;
|
|
195
|
+
/**
|
|
196
|
+
* @generated from field: string finish_reason = 3;
|
|
197
|
+
*/
|
|
198
|
+
finishReason: string;
|
|
199
|
+
/**
|
|
200
|
+
* @generated from field: bragi.proxy.Usage usage = 4;
|
|
201
|
+
*/
|
|
202
|
+
usage?: Usage;
|
|
203
|
+
constructor(data?: PartialMessage<ChatResponse>);
|
|
204
|
+
static readonly runtime: typeof proto3;
|
|
205
|
+
static readonly typeName = "bragi.proxy.ChatResponse";
|
|
206
|
+
static readonly fields: FieldList;
|
|
207
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ChatResponse;
|
|
208
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ChatResponse;
|
|
209
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ChatResponse;
|
|
210
|
+
static equals(a: ChatResponse | PlainMessage<ChatResponse> | undefined, b: ChatResponse | PlainMessage<ChatResponse> | undefined): boolean;
|
|
211
|
+
}
|
|
212
|
+
/**
|
|
213
|
+
* @generated from message bragi.proxy.ChatStreamResponse
|
|
214
|
+
*/
|
|
215
|
+
declare class ChatStreamResponse extends Message<ChatStreamResponse> {
|
|
216
|
+
/**
|
|
217
|
+
* @generated from field: string id = 1;
|
|
218
|
+
*/
|
|
219
|
+
id: string;
|
|
220
|
+
/**
|
|
221
|
+
* @generated from field: bragi.proxy.ChatDelta delta = 2;
|
|
222
|
+
*/
|
|
223
|
+
delta?: ChatDelta;
|
|
224
|
+
/**
|
|
225
|
+
* @generated from field: google.protobuf.StringValue finish_reason = 3;
|
|
226
|
+
*/
|
|
227
|
+
finishReason?: string;
|
|
228
|
+
constructor(data?: PartialMessage<ChatStreamResponse>);
|
|
229
|
+
static readonly runtime: typeof proto3;
|
|
230
|
+
static readonly typeName = "bragi.proxy.ChatStreamResponse";
|
|
231
|
+
static readonly fields: FieldList;
|
|
232
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ChatStreamResponse;
|
|
233
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ChatStreamResponse;
|
|
234
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ChatStreamResponse;
|
|
235
|
+
static equals(a: ChatStreamResponse | PlainMessage<ChatStreamResponse> | undefined, b: ChatStreamResponse | PlainMessage<ChatStreamResponse> | undefined): boolean;
|
|
236
|
+
}
|
|
237
|
+
/**
|
|
238
|
+
* @generated from message bragi.proxy.EmbeddingRequest
|
|
239
|
+
*/
|
|
240
|
+
declare class EmbeddingRequest extends Message<EmbeddingRequest> {
|
|
241
|
+
/**
|
|
242
|
+
* Model provider defaults to OpenAI
|
|
243
|
+
*
|
|
244
|
+
* @generated from field: bragi.proxy.ModelProvider provider = 1;
|
|
245
|
+
*/
|
|
246
|
+
provider: ModelProvider;
|
|
247
|
+
/**
|
|
248
|
+
* Model name
|
|
249
|
+
*
|
|
250
|
+
* @generated from field: string model = 2;
|
|
251
|
+
*/
|
|
252
|
+
model: string;
|
|
253
|
+
/**
|
|
254
|
+
* Array of input strings
|
|
255
|
+
*
|
|
256
|
+
* @generated from field: repeated string input = 3;
|
|
257
|
+
*/
|
|
258
|
+
input: string[];
|
|
259
|
+
constructor(data?: PartialMessage<EmbeddingRequest>);
|
|
260
|
+
static readonly runtime: typeof proto3;
|
|
261
|
+
static readonly typeName = "bragi.proxy.EmbeddingRequest";
|
|
262
|
+
static readonly fields: FieldList;
|
|
263
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EmbeddingRequest;
|
|
264
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EmbeddingRequest;
|
|
265
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EmbeddingRequest;
|
|
266
|
+
static equals(a: EmbeddingRequest | PlainMessage<EmbeddingRequest> | undefined, b: EmbeddingRequest | PlainMessage<EmbeddingRequest> | undefined): boolean;
|
|
267
|
+
}
|
|
268
|
+
/**
|
|
269
|
+
* @generated from message bragi.proxy.Embedding
|
|
270
|
+
*/
|
|
271
|
+
declare class Embedding extends Message<Embedding> {
|
|
272
|
+
/**
|
|
273
|
+
* @generated from field: repeated float embedding = 1;
|
|
274
|
+
*/
|
|
275
|
+
embedding: number[];
|
|
276
|
+
constructor(data?: PartialMessage<Embedding>);
|
|
277
|
+
static readonly runtime: typeof proto3;
|
|
278
|
+
static readonly typeName = "bragi.proxy.Embedding";
|
|
279
|
+
static readonly fields: FieldList;
|
|
280
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Embedding;
|
|
281
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Embedding;
|
|
282
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Embedding;
|
|
283
|
+
static equals(a: Embedding | PlainMessage<Embedding> | undefined, b: Embedding | PlainMessage<Embedding> | undefined): boolean;
|
|
284
|
+
}
|
|
285
|
+
/**
|
|
286
|
+
* @generated from message bragi.proxy.EmbeddingResponse
|
|
287
|
+
*/
|
|
288
|
+
declare class EmbeddingResponse extends Message<EmbeddingResponse> {
|
|
289
|
+
/**
|
|
290
|
+
* @generated from field: repeated bragi.proxy.Embedding data = 1;
|
|
291
|
+
*/
|
|
292
|
+
data: Embedding[];
|
|
293
|
+
/**
|
|
294
|
+
* @generated from field: bragi.proxy.Usage usage = 2;
|
|
295
|
+
*/
|
|
296
|
+
usage?: Usage;
|
|
297
|
+
constructor(data?: PartialMessage<EmbeddingResponse>);
|
|
298
|
+
static readonly runtime: typeof proto3;
|
|
299
|
+
static readonly typeName = "bragi.proxy.EmbeddingResponse";
|
|
300
|
+
static readonly fields: FieldList;
|
|
301
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EmbeddingResponse;
|
|
302
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EmbeddingResponse;
|
|
303
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EmbeddingResponse;
|
|
304
|
+
static equals(a: EmbeddingResponse | PlainMessage<EmbeddingResponse> | undefined, b: EmbeddingResponse | PlainMessage<EmbeddingResponse> | undefined): boolean;
|
|
305
|
+
}
|
|
306
|
+
/**
|
|
307
|
+
* @generated from message bragi.proxy.ChatAudit
|
|
308
|
+
*/
|
|
309
|
+
declare class ChatAudit extends Message<ChatAudit> {
|
|
310
|
+
/**
|
|
311
|
+
* @generated from field: bragi.proxy.ChatRequest request = 1;
|
|
312
|
+
*/
|
|
313
|
+
request?: ChatRequest;
|
|
314
|
+
/**
|
|
315
|
+
* @generated from field: bragi.proxy.ChatResponse response = 2;
|
|
316
|
+
*/
|
|
317
|
+
response?: ChatResponse;
|
|
318
|
+
/**
|
|
319
|
+
* @generated from field: bool stream = 3;
|
|
320
|
+
*/
|
|
321
|
+
stream: boolean;
|
|
322
|
+
constructor(data?: PartialMessage<ChatAudit>);
|
|
323
|
+
static readonly runtime: typeof proto3;
|
|
324
|
+
static readonly typeName = "bragi.proxy.ChatAudit";
|
|
325
|
+
static readonly fields: FieldList;
|
|
326
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ChatAudit;
|
|
327
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ChatAudit;
|
|
328
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ChatAudit;
|
|
329
|
+
static equals(a: ChatAudit | PlainMessage<ChatAudit> | undefined, b: ChatAudit | PlainMessage<ChatAudit> | undefined): boolean;
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
export { ChatAudit, ChatDelta, ChatMessage, ChatRequest, ChatResponse, ChatStreamResponse, CompletionRequest, Embedding, EmbeddingRequest, EmbeddingResponse, ModelProvider, Usage };
|
|
@@ -0,0 +1,332 @@
|
|
|
1
|
+
import { Message, PartialMessage, proto3, FieldList, BinaryReadOptions, JsonValue, JsonReadOptions, PlainMessage } from '@bufbuild/protobuf';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @generated from enum bragi.proxy.ModelProvider
|
|
5
|
+
*/
|
|
6
|
+
declare enum ModelProvider {
|
|
7
|
+
/**
|
|
8
|
+
* @generated from enum value: OpenAI = 0;
|
|
9
|
+
*/
|
|
10
|
+
OpenAI = 0,
|
|
11
|
+
/**
|
|
12
|
+
* @generated from enum value: Azure = 1;
|
|
13
|
+
*/
|
|
14
|
+
Azure = 1
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* @generated from message bragi.proxy.ChatMessage
|
|
18
|
+
*/
|
|
19
|
+
declare class ChatMessage extends Message<ChatMessage> {
|
|
20
|
+
/**
|
|
21
|
+
* @generated from field: string role = 1;
|
|
22
|
+
*/
|
|
23
|
+
role: string;
|
|
24
|
+
/**
|
|
25
|
+
* @generated from field: string content = 2;
|
|
26
|
+
*/
|
|
27
|
+
content: string;
|
|
28
|
+
constructor(data?: PartialMessage<ChatMessage>);
|
|
29
|
+
static readonly runtime: typeof proto3;
|
|
30
|
+
static readonly typeName = "bragi.proxy.ChatMessage";
|
|
31
|
+
static readonly fields: FieldList;
|
|
32
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ChatMessage;
|
|
33
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ChatMessage;
|
|
34
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ChatMessage;
|
|
35
|
+
static equals(a: ChatMessage | PlainMessage<ChatMessage> | undefined, b: ChatMessage | PlainMessage<ChatMessage> | undefined): boolean;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* @generated from message bragi.proxy.ChatDelta
|
|
39
|
+
*/
|
|
40
|
+
declare class ChatDelta extends Message<ChatDelta> {
|
|
41
|
+
/**
|
|
42
|
+
* @generated from field: google.protobuf.StringValue role = 1;
|
|
43
|
+
*/
|
|
44
|
+
role?: string;
|
|
45
|
+
/**
|
|
46
|
+
* @generated from field: google.protobuf.StringValue content = 2;
|
|
47
|
+
*/
|
|
48
|
+
content?: string;
|
|
49
|
+
constructor(data?: PartialMessage<ChatDelta>);
|
|
50
|
+
static readonly runtime: typeof proto3;
|
|
51
|
+
static readonly typeName = "bragi.proxy.ChatDelta";
|
|
52
|
+
static readonly fields: FieldList;
|
|
53
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ChatDelta;
|
|
54
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ChatDelta;
|
|
55
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ChatDelta;
|
|
56
|
+
static equals(a: ChatDelta | PlainMessage<ChatDelta> | undefined, b: ChatDelta | PlainMessage<ChatDelta> | undefined): boolean;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Usage statistics for cost estimation
|
|
60
|
+
*
|
|
61
|
+
* @generated from message bragi.proxy.Usage
|
|
62
|
+
*/
|
|
63
|
+
declare class Usage extends Message<Usage> {
|
|
64
|
+
/**
|
|
65
|
+
* @generated from field: uint32 prompt_tokens = 1;
|
|
66
|
+
*/
|
|
67
|
+
promptTokens: number;
|
|
68
|
+
/**
|
|
69
|
+
* @generated from field: uint32 completion_tokens = 2;
|
|
70
|
+
*/
|
|
71
|
+
completionTokens: number;
|
|
72
|
+
/**
|
|
73
|
+
* @generated from field: uint32 total_tokens = 3;
|
|
74
|
+
*/
|
|
75
|
+
totalTokens: number;
|
|
76
|
+
constructor(data?: PartialMessage<Usage>);
|
|
77
|
+
static readonly runtime: typeof proto3;
|
|
78
|
+
static readonly typeName = "bragi.proxy.Usage";
|
|
79
|
+
static readonly fields: FieldList;
|
|
80
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Usage;
|
|
81
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Usage;
|
|
82
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Usage;
|
|
83
|
+
static equals(a: Usage | PlainMessage<Usage> | undefined, b: Usage | PlainMessage<Usage> | undefined): boolean;
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* @generated from message bragi.proxy.CompletionRequest
|
|
87
|
+
*/
|
|
88
|
+
declare class CompletionRequest extends Message<CompletionRequest> {
|
|
89
|
+
/**
|
|
90
|
+
* Used to separate between different types of requests, mostly for future purposes (etc. search query, answer, content enrichment)
|
|
91
|
+
*
|
|
92
|
+
* @generated from field: string application = 1;
|
|
93
|
+
*/
|
|
94
|
+
application: string;
|
|
95
|
+
/**
|
|
96
|
+
* Model provider defaults to OpenAI
|
|
97
|
+
*
|
|
98
|
+
* @generated from field: bragi.proxy.ModelProvider provider = 2;
|
|
99
|
+
*/
|
|
100
|
+
provider: ModelProvider;
|
|
101
|
+
/**
|
|
102
|
+
* Model name
|
|
103
|
+
*
|
|
104
|
+
* @generated from field: string model = 3;
|
|
105
|
+
*/
|
|
106
|
+
model: string;
|
|
107
|
+
/**
|
|
108
|
+
* Prompt text
|
|
109
|
+
*
|
|
110
|
+
* @generated from field: string prompt = 4;
|
|
111
|
+
*/
|
|
112
|
+
prompt: string;
|
|
113
|
+
/**
|
|
114
|
+
* Max output tokens (optional)
|
|
115
|
+
*
|
|
116
|
+
* @generated from field: optional google.protobuf.UInt32Value max_tokens = 5;
|
|
117
|
+
*/
|
|
118
|
+
maxTokens?: number;
|
|
119
|
+
/**
|
|
120
|
+
* Model's temperature (optional)
|
|
121
|
+
*
|
|
122
|
+
* @generated from field: optional google.protobuf.FloatValue temperature = 6;
|
|
123
|
+
*/
|
|
124
|
+
temperature?: number;
|
|
125
|
+
constructor(data?: PartialMessage<CompletionRequest>);
|
|
126
|
+
static readonly runtime: typeof proto3;
|
|
127
|
+
static readonly typeName = "bragi.proxy.CompletionRequest";
|
|
128
|
+
static readonly fields: FieldList;
|
|
129
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CompletionRequest;
|
|
130
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CompletionRequest;
|
|
131
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CompletionRequest;
|
|
132
|
+
static equals(a: CompletionRequest | PlainMessage<CompletionRequest> | undefined, b: CompletionRequest | PlainMessage<CompletionRequest> | undefined): boolean;
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* @generated from message bragi.proxy.ChatRequest
|
|
136
|
+
*/
|
|
137
|
+
declare class ChatRequest extends Message<ChatRequest> {
|
|
138
|
+
/**
|
|
139
|
+
* Used to separate between different types of requests, mostly for future purposes (etc. search query, answer, content enrichment)
|
|
140
|
+
*
|
|
141
|
+
* @generated from field: string application = 1;
|
|
142
|
+
*/
|
|
143
|
+
application: string;
|
|
144
|
+
/**
|
|
145
|
+
* Model provider defaults to OpenAI
|
|
146
|
+
*
|
|
147
|
+
* @generated from field: bragi.proxy.ModelProvider provider = 2;
|
|
148
|
+
*/
|
|
149
|
+
provider: ModelProvider;
|
|
150
|
+
/**
|
|
151
|
+
* Model name
|
|
152
|
+
*
|
|
153
|
+
* @generated from field: string model = 3;
|
|
154
|
+
*/
|
|
155
|
+
model: string;
|
|
156
|
+
/**
|
|
157
|
+
* Array of messages
|
|
158
|
+
*
|
|
159
|
+
* @generated from field: repeated bragi.proxy.ChatMessage messages = 4;
|
|
160
|
+
*/
|
|
161
|
+
messages: ChatMessage[];
|
|
162
|
+
/**
|
|
163
|
+
* Max output tokens (optional)
|
|
164
|
+
*
|
|
165
|
+
* @generated from field: optional google.protobuf.UInt32Value max_tokens = 5;
|
|
166
|
+
*/
|
|
167
|
+
maxTokens?: number;
|
|
168
|
+
/**
|
|
169
|
+
* Model's temperature (optional)
|
|
170
|
+
*
|
|
171
|
+
* @generated from field: optional google.protobuf.FloatValue temperature = 6;
|
|
172
|
+
*/
|
|
173
|
+
temperature?: number;
|
|
174
|
+
constructor(data?: PartialMessage<ChatRequest>);
|
|
175
|
+
static readonly runtime: typeof proto3;
|
|
176
|
+
static readonly typeName = "bragi.proxy.ChatRequest";
|
|
177
|
+
static readonly fields: FieldList;
|
|
178
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ChatRequest;
|
|
179
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ChatRequest;
|
|
180
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ChatRequest;
|
|
181
|
+
static equals(a: ChatRequest | PlainMessage<ChatRequest> | undefined, b: ChatRequest | PlainMessage<ChatRequest> | undefined): boolean;
|
|
182
|
+
}
|
|
183
|
+
/**
|
|
184
|
+
* @generated from message bragi.proxy.ChatResponse
|
|
185
|
+
*/
|
|
186
|
+
declare class ChatResponse extends Message<ChatResponse> {
|
|
187
|
+
/**
|
|
188
|
+
* @generated from field: string id = 1;
|
|
189
|
+
*/
|
|
190
|
+
id: string;
|
|
191
|
+
/**
|
|
192
|
+
* @generated from field: bragi.proxy.ChatMessage message = 2;
|
|
193
|
+
*/
|
|
194
|
+
message?: ChatMessage;
|
|
195
|
+
/**
|
|
196
|
+
* @generated from field: string finish_reason = 3;
|
|
197
|
+
*/
|
|
198
|
+
finishReason: string;
|
|
199
|
+
/**
|
|
200
|
+
* @generated from field: bragi.proxy.Usage usage = 4;
|
|
201
|
+
*/
|
|
202
|
+
usage?: Usage;
|
|
203
|
+
constructor(data?: PartialMessage<ChatResponse>);
|
|
204
|
+
static readonly runtime: typeof proto3;
|
|
205
|
+
static readonly typeName = "bragi.proxy.ChatResponse";
|
|
206
|
+
static readonly fields: FieldList;
|
|
207
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ChatResponse;
|
|
208
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ChatResponse;
|
|
209
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ChatResponse;
|
|
210
|
+
static equals(a: ChatResponse | PlainMessage<ChatResponse> | undefined, b: ChatResponse | PlainMessage<ChatResponse> | undefined): boolean;
|
|
211
|
+
}
|
|
212
|
+
/**
|
|
213
|
+
* @generated from message bragi.proxy.ChatStreamResponse
|
|
214
|
+
*/
|
|
215
|
+
declare class ChatStreamResponse extends Message<ChatStreamResponse> {
|
|
216
|
+
/**
|
|
217
|
+
* @generated from field: string id = 1;
|
|
218
|
+
*/
|
|
219
|
+
id: string;
|
|
220
|
+
/**
|
|
221
|
+
* @generated from field: bragi.proxy.ChatDelta delta = 2;
|
|
222
|
+
*/
|
|
223
|
+
delta?: ChatDelta;
|
|
224
|
+
/**
|
|
225
|
+
* @generated from field: google.protobuf.StringValue finish_reason = 3;
|
|
226
|
+
*/
|
|
227
|
+
finishReason?: string;
|
|
228
|
+
constructor(data?: PartialMessage<ChatStreamResponse>);
|
|
229
|
+
static readonly runtime: typeof proto3;
|
|
230
|
+
static readonly typeName = "bragi.proxy.ChatStreamResponse";
|
|
231
|
+
static readonly fields: FieldList;
|
|
232
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ChatStreamResponse;
|
|
233
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ChatStreamResponse;
|
|
234
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ChatStreamResponse;
|
|
235
|
+
static equals(a: ChatStreamResponse | PlainMessage<ChatStreamResponse> | undefined, b: ChatStreamResponse | PlainMessage<ChatStreamResponse> | undefined): boolean;
|
|
236
|
+
}
|
|
237
|
+
/**
|
|
238
|
+
* @generated from message bragi.proxy.EmbeddingRequest
|
|
239
|
+
*/
|
|
240
|
+
declare class EmbeddingRequest extends Message<EmbeddingRequest> {
|
|
241
|
+
/**
|
|
242
|
+
* Model provider defaults to OpenAI
|
|
243
|
+
*
|
|
244
|
+
* @generated from field: bragi.proxy.ModelProvider provider = 1;
|
|
245
|
+
*/
|
|
246
|
+
provider: ModelProvider;
|
|
247
|
+
/**
|
|
248
|
+
* Model name
|
|
249
|
+
*
|
|
250
|
+
* @generated from field: string model = 2;
|
|
251
|
+
*/
|
|
252
|
+
model: string;
|
|
253
|
+
/**
|
|
254
|
+
* Array of input strings
|
|
255
|
+
*
|
|
256
|
+
* @generated from field: repeated string input = 3;
|
|
257
|
+
*/
|
|
258
|
+
input: string[];
|
|
259
|
+
constructor(data?: PartialMessage<EmbeddingRequest>);
|
|
260
|
+
static readonly runtime: typeof proto3;
|
|
261
|
+
static readonly typeName = "bragi.proxy.EmbeddingRequest";
|
|
262
|
+
static readonly fields: FieldList;
|
|
263
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EmbeddingRequest;
|
|
264
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EmbeddingRequest;
|
|
265
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EmbeddingRequest;
|
|
266
|
+
static equals(a: EmbeddingRequest | PlainMessage<EmbeddingRequest> | undefined, b: EmbeddingRequest | PlainMessage<EmbeddingRequest> | undefined): boolean;
|
|
267
|
+
}
|
|
268
|
+
/**
|
|
269
|
+
* @generated from message bragi.proxy.Embedding
|
|
270
|
+
*/
|
|
271
|
+
declare class Embedding extends Message<Embedding> {
|
|
272
|
+
/**
|
|
273
|
+
* @generated from field: repeated float embedding = 1;
|
|
274
|
+
*/
|
|
275
|
+
embedding: number[];
|
|
276
|
+
constructor(data?: PartialMessage<Embedding>);
|
|
277
|
+
static readonly runtime: typeof proto3;
|
|
278
|
+
static readonly typeName = "bragi.proxy.Embedding";
|
|
279
|
+
static readonly fields: FieldList;
|
|
280
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Embedding;
|
|
281
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Embedding;
|
|
282
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Embedding;
|
|
283
|
+
static equals(a: Embedding | PlainMessage<Embedding> | undefined, b: Embedding | PlainMessage<Embedding> | undefined): boolean;
|
|
284
|
+
}
|
|
285
|
+
/**
|
|
286
|
+
* @generated from message bragi.proxy.EmbeddingResponse
|
|
287
|
+
*/
|
|
288
|
+
declare class EmbeddingResponse extends Message<EmbeddingResponse> {
|
|
289
|
+
/**
|
|
290
|
+
* @generated from field: repeated bragi.proxy.Embedding data = 1;
|
|
291
|
+
*/
|
|
292
|
+
data: Embedding[];
|
|
293
|
+
/**
|
|
294
|
+
* @generated from field: bragi.proxy.Usage usage = 2;
|
|
295
|
+
*/
|
|
296
|
+
usage?: Usage;
|
|
297
|
+
constructor(data?: PartialMessage<EmbeddingResponse>);
|
|
298
|
+
static readonly runtime: typeof proto3;
|
|
299
|
+
static readonly typeName = "bragi.proxy.EmbeddingResponse";
|
|
300
|
+
static readonly fields: FieldList;
|
|
301
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EmbeddingResponse;
|
|
302
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EmbeddingResponse;
|
|
303
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EmbeddingResponse;
|
|
304
|
+
static equals(a: EmbeddingResponse | PlainMessage<EmbeddingResponse> | undefined, b: EmbeddingResponse | PlainMessage<EmbeddingResponse> | undefined): boolean;
|
|
305
|
+
}
|
|
306
|
+
/**
|
|
307
|
+
* @generated from message bragi.proxy.ChatAudit
|
|
308
|
+
*/
|
|
309
|
+
declare class ChatAudit extends Message<ChatAudit> {
|
|
310
|
+
/**
|
|
311
|
+
* @generated from field: bragi.proxy.ChatRequest request = 1;
|
|
312
|
+
*/
|
|
313
|
+
request?: ChatRequest;
|
|
314
|
+
/**
|
|
315
|
+
* @generated from field: bragi.proxy.ChatResponse response = 2;
|
|
316
|
+
*/
|
|
317
|
+
response?: ChatResponse;
|
|
318
|
+
/**
|
|
319
|
+
* @generated from field: bool stream = 3;
|
|
320
|
+
*/
|
|
321
|
+
stream: boolean;
|
|
322
|
+
constructor(data?: PartialMessage<ChatAudit>);
|
|
323
|
+
static readonly runtime: typeof proto3;
|
|
324
|
+
static readonly typeName = "bragi.proxy.ChatAudit";
|
|
325
|
+
static readonly fields: FieldList;
|
|
326
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ChatAudit;
|
|
327
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ChatAudit;
|
|
328
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ChatAudit;
|
|
329
|
+
static equals(a: ChatAudit | PlainMessage<ChatAudit> | undefined, b: ChatAudit | PlainMessage<ChatAudit> | undefined): boolean;
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
export { ChatAudit, ChatDelta, ChatMessage, ChatRequest, ChatResponse, ChatStreamResponse, CompletionRequest, Embedding, EmbeddingRequest, EmbeddingResponse, ModelProvider, Usage };
|