weave-typescript 0.41.0 → 0.42.7
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/{inference/v1/inference.pb.d.ts → gateway/v1/gateway.pb.d.ts} +108 -99
- package/dist/weaveapi/{inference/v1/inference.pb.js → gateway/v1/gateway.pb.js} +493 -402
- package/dist/weaveapi/{inference → gateway}/v1/service.pb.d.ts +15 -15
- package/dist/weaveapi/{inference → gateway}/v1/service.pb.js +63 -63
- package/package.json +2 -2
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Observable } from "rxjs";
|
|
2
|
-
import { AnthropicCompatibilityServiceCreateMessageRequest, AnthropicCompatibilityServiceCreateMessageResponse, AnthropicCompatibilityServiceStreamMessagesRequest, AnthropicCompatibilityServiceStreamMessagesResponse, CallMCPRequest, CallMCPResponse, CallToolsRequest, CallToolsResponse, CreateChatCompletionRequest, CreateChatCompletionResponse, CreateEmbeddingsRequest, CreateEmbeddingsResponse, GenerateImagesRequest, GenerateImagesResponse, OpenAICompatibilityServiceCreateChatCompletionRequest, OpenAICompatibilityServiceCreateChatCompletionResponse, OpenAICompatibilityServiceCreateEmbeddingRequest, OpenAICompatibilityServiceCreateEmbeddingResponse, OpenAICompatibilityServiceGenerateImageRequest, OpenAICompatibilityServiceGenerateImageResponse, OpenAICompatibilityServiceStreamChatCompletionRequest, OpenAICompatibilityServiceStreamChatCompletionResponse, StreamChatCompletionRequest, StreamChatCompletionResponse } from "./
|
|
3
|
-
export declare const protobufPackage = "weaveapi.
|
|
4
|
-
/**
|
|
5
|
-
export interface
|
|
2
|
+
import { AnthropicCompatibilityServiceCreateMessageRequest, AnthropicCompatibilityServiceCreateMessageResponse, AnthropicCompatibilityServiceStreamMessagesRequest, AnthropicCompatibilityServiceStreamMessagesResponse, CallMCPRequest, CallMCPResponse, CallToolsRequest, CallToolsResponse, CreateChatCompletionRequest, CreateChatCompletionResponse, CreateEmbeddingsRequest, CreateEmbeddingsResponse, GenerateImagesRequest, GenerateImagesResponse, OpenAICompatibilityServiceCreateChatCompletionRequest, OpenAICompatibilityServiceCreateChatCompletionResponse, OpenAICompatibilityServiceCreateEmbeddingRequest, OpenAICompatibilityServiceCreateEmbeddingResponse, OpenAICompatibilityServiceGenerateImageRequest, OpenAICompatibilityServiceGenerateImageResponse, OpenAICompatibilityServiceStreamChatCompletionRequest, OpenAICompatibilityServiceStreamChatCompletionResponse, StreamChatCompletionRequest, StreamChatCompletionResponse } from "./gateway.pb";
|
|
3
|
+
export declare const protobufPackage = "weaveapi.gateway.v1";
|
|
4
|
+
/** GatewayService is the Weave API surface for model calls. */
|
|
5
|
+
export interface GatewayService {
|
|
6
6
|
CreateChatCompletion(request: CreateChatCompletionRequest): Promise<CreateChatCompletionResponse>;
|
|
7
7
|
StreamChatCompletion(request: StreamChatCompletionRequest): Observable<StreamChatCompletionResponse>;
|
|
8
8
|
CallTools(request: CallToolsRequest): Promise<CallToolsResponse>;
|
|
@@ -10,8 +10,8 @@ export interface InferenceService {
|
|
|
10
10
|
GenerateImages(request: GenerateImagesRequest): Promise<GenerateImagesResponse>;
|
|
11
11
|
CallMCP(request: CallMCPRequest): Promise<CallMCPResponse>;
|
|
12
12
|
}
|
|
13
|
-
export declare const
|
|
14
|
-
export declare class
|
|
13
|
+
export declare const GatewayServiceServiceName = "weaveapi.gateway.v1.GatewayService";
|
|
14
|
+
export declare class GatewayServiceClientImpl implements GatewayService {
|
|
15
15
|
private readonly rpc;
|
|
16
16
|
private readonly service;
|
|
17
17
|
constructor(rpc: Rpc, opts?: {
|
|
@@ -24,11 +24,11 @@ export declare class InferenceServiceClientImpl implements InferenceService {
|
|
|
24
24
|
GenerateImages(request: GenerateImagesRequest): Promise<GenerateImagesResponse>;
|
|
25
25
|
CallMCP(request: CallMCPRequest): Promise<CallMCPResponse>;
|
|
26
26
|
}
|
|
27
|
-
/**
|
|
28
|
-
export type
|
|
29
|
-
export declare const
|
|
30
|
-
readonly name: "
|
|
31
|
-
readonly fullName: "weaveapi.
|
|
27
|
+
/** GatewayService is the Weave API surface for model calls. */
|
|
28
|
+
export type GatewayServiceDefinition = typeof GatewayServiceDefinition;
|
|
29
|
+
export declare const GatewayServiceDefinition: {
|
|
30
|
+
readonly name: "GatewayService";
|
|
31
|
+
readonly fullName: "weaveapi.gateway.v1.GatewayService";
|
|
32
32
|
readonly methods: {
|
|
33
33
|
readonly createChatCompletion: {
|
|
34
34
|
readonly name: "CreateChatCompletion";
|
|
@@ -111,7 +111,7 @@ export interface OpenAICompatibilityService {
|
|
|
111
111
|
CreateEmbedding(request: OpenAICompatibilityServiceCreateEmbeddingRequest): Promise<OpenAICompatibilityServiceCreateEmbeddingResponse>;
|
|
112
112
|
GenerateImage(request: OpenAICompatibilityServiceGenerateImageRequest): Promise<OpenAICompatibilityServiceGenerateImageResponse>;
|
|
113
113
|
}
|
|
114
|
-
export declare const OpenAICompatibilityServiceServiceName = "weaveapi.
|
|
114
|
+
export declare const OpenAICompatibilityServiceServiceName = "weaveapi.gateway.v1.OpenAICompatibilityService";
|
|
115
115
|
export declare class OpenAICompatibilityServiceClientImpl implements OpenAICompatibilityService {
|
|
116
116
|
private readonly rpc;
|
|
117
117
|
private readonly service;
|
|
@@ -127,7 +127,7 @@ export declare class OpenAICompatibilityServiceClientImpl implements OpenAICompa
|
|
|
127
127
|
export type OpenAICompatibilityServiceDefinition = typeof OpenAICompatibilityServiceDefinition;
|
|
128
128
|
export declare const OpenAICompatibilityServiceDefinition: {
|
|
129
129
|
readonly name: "OpenAICompatibilityService";
|
|
130
|
-
readonly fullName: "weaveapi.
|
|
130
|
+
readonly fullName: "weaveapi.gateway.v1.OpenAICompatibilityService";
|
|
131
131
|
readonly methods: {
|
|
132
132
|
readonly createChatCompletion: {
|
|
133
133
|
readonly name: "CreateChatCompletion";
|
|
@@ -184,7 +184,7 @@ export interface AnthropicCompatibilityService {
|
|
|
184
184
|
CreateMessage(request: AnthropicCompatibilityServiceCreateMessageRequest): Promise<AnthropicCompatibilityServiceCreateMessageResponse>;
|
|
185
185
|
StreamMessages(request: AnthropicCompatibilityServiceStreamMessagesRequest): Observable<AnthropicCompatibilityServiceStreamMessagesResponse>;
|
|
186
186
|
}
|
|
187
|
-
export declare const AnthropicCompatibilityServiceServiceName = "weaveapi.
|
|
187
|
+
export declare const AnthropicCompatibilityServiceServiceName = "weaveapi.gateway.v1.AnthropicCompatibilityService";
|
|
188
188
|
export declare class AnthropicCompatibilityServiceClientImpl implements AnthropicCompatibilityService {
|
|
189
189
|
private readonly rpc;
|
|
190
190
|
private readonly service;
|
|
@@ -198,7 +198,7 @@ export declare class AnthropicCompatibilityServiceClientImpl implements Anthropi
|
|
|
198
198
|
export type AnthropicCompatibilityServiceDefinition = typeof AnthropicCompatibilityServiceDefinition;
|
|
199
199
|
export declare const AnthropicCompatibilityServiceDefinition: {
|
|
200
200
|
readonly name: "AnthropicCompatibilityService";
|
|
201
|
-
readonly fullName: "weaveapi.
|
|
201
|
+
readonly fullName: "weaveapi.gateway.v1.AnthropicCompatibilityService";
|
|
202
202
|
readonly methods: {
|
|
203
203
|
readonly createMessage: {
|
|
204
204
|
readonly name: "CreateMessage";
|
|
@@ -3,18 +3,18 @@
|
|
|
3
3
|
// versions:
|
|
4
4
|
// protoc-gen-ts_proto v2.11.8
|
|
5
5
|
// protoc unknown
|
|
6
|
-
// source: weaveapi/
|
|
6
|
+
// source: weaveapi/gateway/v1/service.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.AnthropicCompatibilityServiceDefinition = exports.AnthropicCompatibilityServiceClientImpl = exports.AnthropicCompatibilityServiceServiceName = exports.OpenAICompatibilityServiceDefinition = exports.OpenAICompatibilityServiceClientImpl = exports.OpenAICompatibilityServiceServiceName = exports.
|
|
8
|
+
exports.AnthropicCompatibilityServiceDefinition = exports.AnthropicCompatibilityServiceClientImpl = exports.AnthropicCompatibilityServiceServiceName = exports.OpenAICompatibilityServiceDefinition = exports.OpenAICompatibilityServiceClientImpl = exports.OpenAICompatibilityServiceServiceName = exports.GatewayServiceDefinition = exports.GatewayServiceClientImpl = exports.GatewayServiceServiceName = exports.protobufPackage = void 0;
|
|
9
9
|
/* eslint-disable */
|
|
10
10
|
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
11
11
|
const operators_1 = require("rxjs/operators");
|
|
12
|
-
const
|
|
13
|
-
exports.protobufPackage = "weaveapi.
|
|
14
|
-
exports.
|
|
15
|
-
class
|
|
12
|
+
const gateway_pb_1 = require("./gateway.pb");
|
|
13
|
+
exports.protobufPackage = "weaveapi.gateway.v1";
|
|
14
|
+
exports.GatewayServiceServiceName = "weaveapi.gateway.v1.GatewayService";
|
|
15
|
+
class GatewayServiceClientImpl {
|
|
16
16
|
constructor(rpc, opts) {
|
|
17
|
-
this.service = (opts === null || opts === void 0 ? void 0 : opts.service) || exports.
|
|
17
|
+
this.service = (opts === null || opts === void 0 ? void 0 : opts.service) || exports.GatewayServiceServiceName;
|
|
18
18
|
this.rpc = rpc;
|
|
19
19
|
this.CreateChatCompletion = this.CreateChatCompletion.bind(this);
|
|
20
20
|
this.StreamChatCompletion = this.StreamChatCompletion.bind(this);
|
|
@@ -24,46 +24,46 @@ class InferenceServiceClientImpl {
|
|
|
24
24
|
this.CallMCP = this.CallMCP.bind(this);
|
|
25
25
|
}
|
|
26
26
|
CreateChatCompletion(request) {
|
|
27
|
-
const data =
|
|
27
|
+
const data = gateway_pb_1.CreateChatCompletionRequest.encode(request).finish();
|
|
28
28
|
const promise = this.rpc.request(this.service, "CreateChatCompletion", data);
|
|
29
|
-
return promise.then((data) =>
|
|
29
|
+
return promise.then((data) => gateway_pb_1.CreateChatCompletionResponse.decode(new wire_1.BinaryReader(data)));
|
|
30
30
|
}
|
|
31
31
|
StreamChatCompletion(request) {
|
|
32
|
-
const data =
|
|
32
|
+
const data = gateway_pb_1.StreamChatCompletionRequest.encode(request).finish();
|
|
33
33
|
const result = this.rpc.serverStreamingRequest(this.service, "StreamChatCompletion", data);
|
|
34
|
-
return result.pipe((0, operators_1.map)((data) =>
|
|
34
|
+
return result.pipe((0, operators_1.map)((data) => gateway_pb_1.StreamChatCompletionResponse.decode(new wire_1.BinaryReader(data))));
|
|
35
35
|
}
|
|
36
36
|
CallTools(request) {
|
|
37
|
-
const data =
|
|
37
|
+
const data = gateway_pb_1.CallToolsRequest.encode(request).finish();
|
|
38
38
|
const promise = this.rpc.request(this.service, "CallTools", data);
|
|
39
|
-
return promise.then((data) =>
|
|
39
|
+
return promise.then((data) => gateway_pb_1.CallToolsResponse.decode(new wire_1.BinaryReader(data)));
|
|
40
40
|
}
|
|
41
41
|
CreateEmbeddings(request) {
|
|
42
|
-
const data =
|
|
42
|
+
const data = gateway_pb_1.CreateEmbeddingsRequest.encode(request).finish();
|
|
43
43
|
const promise = this.rpc.request(this.service, "CreateEmbeddings", data);
|
|
44
|
-
return promise.then((data) =>
|
|
44
|
+
return promise.then((data) => gateway_pb_1.CreateEmbeddingsResponse.decode(new wire_1.BinaryReader(data)));
|
|
45
45
|
}
|
|
46
46
|
GenerateImages(request) {
|
|
47
|
-
const data =
|
|
47
|
+
const data = gateway_pb_1.GenerateImagesRequest.encode(request).finish();
|
|
48
48
|
const promise = this.rpc.request(this.service, "GenerateImages", data);
|
|
49
|
-
return promise.then((data) =>
|
|
49
|
+
return promise.then((data) => gateway_pb_1.GenerateImagesResponse.decode(new wire_1.BinaryReader(data)));
|
|
50
50
|
}
|
|
51
51
|
CallMCP(request) {
|
|
52
|
-
const data =
|
|
52
|
+
const data = gateway_pb_1.CallMCPRequest.encode(request).finish();
|
|
53
53
|
const promise = this.rpc.request(this.service, "CallMCP", data);
|
|
54
|
-
return promise.then((data) =>
|
|
54
|
+
return promise.then((data) => gateway_pb_1.CallMCPResponse.decode(new wire_1.BinaryReader(data)));
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
|
-
exports.
|
|
58
|
-
exports.
|
|
59
|
-
name: "
|
|
60
|
-
fullName: "weaveapi.
|
|
57
|
+
exports.GatewayServiceClientImpl = GatewayServiceClientImpl;
|
|
58
|
+
exports.GatewayServiceDefinition = {
|
|
59
|
+
name: "GatewayService",
|
|
60
|
+
fullName: "weaveapi.gateway.v1.GatewayService",
|
|
61
61
|
methods: {
|
|
62
62
|
createChatCompletion: {
|
|
63
63
|
name: "CreateChatCompletion",
|
|
64
|
-
requestType:
|
|
64
|
+
requestType: gateway_pb_1.CreateChatCompletionRequest,
|
|
65
65
|
requestStream: false,
|
|
66
|
-
responseType:
|
|
66
|
+
responseType: gateway_pb_1.CreateChatCompletionResponse,
|
|
67
67
|
responseStream: false,
|
|
68
68
|
options: {
|
|
69
69
|
_unknownFields: {
|
|
@@ -102,9 +102,9 @@ exports.InferenceServiceDefinition = {
|
|
|
102
102
|
},
|
|
103
103
|
streamChatCompletion: {
|
|
104
104
|
name: "StreamChatCompletion",
|
|
105
|
-
requestType:
|
|
105
|
+
requestType: gateway_pb_1.StreamChatCompletionRequest,
|
|
106
106
|
requestStream: false,
|
|
107
|
-
responseType:
|
|
107
|
+
responseType: gateway_pb_1.StreamChatCompletionResponse,
|
|
108
108
|
responseStream: true,
|
|
109
109
|
options: {
|
|
110
110
|
_unknownFields: {
|
|
@@ -150,9 +150,9 @@ exports.InferenceServiceDefinition = {
|
|
|
150
150
|
},
|
|
151
151
|
callTools: {
|
|
152
152
|
name: "CallTools",
|
|
153
|
-
requestType:
|
|
153
|
+
requestType: gateway_pb_1.CallToolsRequest,
|
|
154
154
|
requestStream: false,
|
|
155
|
-
responseType:
|
|
155
|
+
responseType: gateway_pb_1.CallToolsResponse,
|
|
156
156
|
responseStream: false,
|
|
157
157
|
options: {
|
|
158
158
|
_unknownFields: {
|
|
@@ -185,9 +185,9 @@ exports.InferenceServiceDefinition = {
|
|
|
185
185
|
},
|
|
186
186
|
createEmbeddings: {
|
|
187
187
|
name: "CreateEmbeddings",
|
|
188
|
-
requestType:
|
|
188
|
+
requestType: gateway_pb_1.CreateEmbeddingsRequest,
|
|
189
189
|
requestStream: false,
|
|
190
|
-
responseType:
|
|
190
|
+
responseType: gateway_pb_1.CreateEmbeddingsResponse,
|
|
191
191
|
responseStream: false,
|
|
192
192
|
options: {
|
|
193
193
|
_unknownFields: {
|
|
@@ -220,9 +220,9 @@ exports.InferenceServiceDefinition = {
|
|
|
220
220
|
},
|
|
221
221
|
generateImages: {
|
|
222
222
|
name: "GenerateImages",
|
|
223
|
-
requestType:
|
|
223
|
+
requestType: gateway_pb_1.GenerateImagesRequest,
|
|
224
224
|
requestStream: false,
|
|
225
|
-
responseType:
|
|
225
|
+
responseType: gateway_pb_1.GenerateImagesResponse,
|
|
226
226
|
responseStream: false,
|
|
227
227
|
options: {
|
|
228
228
|
_unknownFields: {
|
|
@@ -263,9 +263,9 @@ exports.InferenceServiceDefinition = {
|
|
|
263
263
|
},
|
|
264
264
|
callMCP: {
|
|
265
265
|
name: "CallMCP",
|
|
266
|
-
requestType:
|
|
266
|
+
requestType: gateway_pb_1.CallMCPRequest,
|
|
267
267
|
requestStream: false,
|
|
268
|
-
responseType:
|
|
268
|
+
responseType: gateway_pb_1.CallMCPResponse,
|
|
269
269
|
responseStream: false,
|
|
270
270
|
options: {
|
|
271
271
|
_unknownFields: {
|
|
@@ -297,7 +297,7 @@ exports.InferenceServiceDefinition = {
|
|
|
297
297
|
},
|
|
298
298
|
},
|
|
299
299
|
};
|
|
300
|
-
exports.OpenAICompatibilityServiceServiceName = "weaveapi.
|
|
300
|
+
exports.OpenAICompatibilityServiceServiceName = "weaveapi.gateway.v1.OpenAICompatibilityService";
|
|
301
301
|
class OpenAICompatibilityServiceClientImpl {
|
|
302
302
|
constructor(rpc, opts) {
|
|
303
303
|
this.service = (opts === null || opts === void 0 ? void 0 : opts.service) || exports.OpenAICompatibilityServiceServiceName;
|
|
@@ -308,36 +308,36 @@ class OpenAICompatibilityServiceClientImpl {
|
|
|
308
308
|
this.GenerateImage = this.GenerateImage.bind(this);
|
|
309
309
|
}
|
|
310
310
|
CreateChatCompletion(request) {
|
|
311
|
-
const data =
|
|
311
|
+
const data = gateway_pb_1.OpenAICompatibilityServiceCreateChatCompletionRequest.encode(request).finish();
|
|
312
312
|
const promise = this.rpc.request(this.service, "CreateChatCompletion", data);
|
|
313
|
-
return promise.then((data) =>
|
|
313
|
+
return promise.then((data) => gateway_pb_1.OpenAICompatibilityServiceCreateChatCompletionResponse.decode(new wire_1.BinaryReader(data)));
|
|
314
314
|
}
|
|
315
315
|
StreamChatCompletion(request) {
|
|
316
|
-
const data =
|
|
316
|
+
const data = gateway_pb_1.OpenAICompatibilityServiceStreamChatCompletionRequest.encode(request).finish();
|
|
317
317
|
const result = this.rpc.serverStreamingRequest(this.service, "StreamChatCompletion", data);
|
|
318
|
-
return result.pipe((0, operators_1.map)((data) =>
|
|
318
|
+
return result.pipe((0, operators_1.map)((data) => gateway_pb_1.OpenAICompatibilityServiceStreamChatCompletionResponse.decode(new wire_1.BinaryReader(data))));
|
|
319
319
|
}
|
|
320
320
|
CreateEmbedding(request) {
|
|
321
|
-
const data =
|
|
321
|
+
const data = gateway_pb_1.OpenAICompatibilityServiceCreateEmbeddingRequest.encode(request).finish();
|
|
322
322
|
const promise = this.rpc.request(this.service, "CreateEmbedding", data);
|
|
323
|
-
return promise.then((data) =>
|
|
323
|
+
return promise.then((data) => gateway_pb_1.OpenAICompatibilityServiceCreateEmbeddingResponse.decode(new wire_1.BinaryReader(data)));
|
|
324
324
|
}
|
|
325
325
|
GenerateImage(request) {
|
|
326
|
-
const data =
|
|
326
|
+
const data = gateway_pb_1.OpenAICompatibilityServiceGenerateImageRequest.encode(request).finish();
|
|
327
327
|
const promise = this.rpc.request(this.service, "GenerateImage", data);
|
|
328
|
-
return promise.then((data) =>
|
|
328
|
+
return promise.then((data) => gateway_pb_1.OpenAICompatibilityServiceGenerateImageResponse.decode(new wire_1.BinaryReader(data)));
|
|
329
329
|
}
|
|
330
330
|
}
|
|
331
331
|
exports.OpenAICompatibilityServiceClientImpl = OpenAICompatibilityServiceClientImpl;
|
|
332
332
|
exports.OpenAICompatibilityServiceDefinition = {
|
|
333
333
|
name: "OpenAICompatibilityService",
|
|
334
|
-
fullName: "weaveapi.
|
|
334
|
+
fullName: "weaveapi.gateway.v1.OpenAICompatibilityService",
|
|
335
335
|
methods: {
|
|
336
336
|
createChatCompletion: {
|
|
337
337
|
name: "CreateChatCompletion",
|
|
338
|
-
requestType:
|
|
338
|
+
requestType: gateway_pb_1.OpenAICompatibilityServiceCreateChatCompletionRequest,
|
|
339
339
|
requestStream: false,
|
|
340
|
-
responseType:
|
|
340
|
+
responseType: gateway_pb_1.OpenAICompatibilityServiceCreateChatCompletionResponse,
|
|
341
341
|
responseStream: false,
|
|
342
342
|
options: {
|
|
343
343
|
_unknownFields: {
|
|
@@ -383,9 +383,9 @@ exports.OpenAICompatibilityServiceDefinition = {
|
|
|
383
383
|
},
|
|
384
384
|
streamChatCompletion: {
|
|
385
385
|
name: "StreamChatCompletion",
|
|
386
|
-
requestType:
|
|
386
|
+
requestType: gateway_pb_1.OpenAICompatibilityServiceStreamChatCompletionRequest,
|
|
387
387
|
requestStream: false,
|
|
388
|
-
responseType:
|
|
388
|
+
responseType: gateway_pb_1.OpenAICompatibilityServiceStreamChatCompletionResponse,
|
|
389
389
|
responseStream: true,
|
|
390
390
|
options: {
|
|
391
391
|
_unknownFields: {
|
|
@@ -438,9 +438,9 @@ exports.OpenAICompatibilityServiceDefinition = {
|
|
|
438
438
|
},
|
|
439
439
|
createEmbedding: {
|
|
440
440
|
name: "CreateEmbedding",
|
|
441
|
-
requestType:
|
|
441
|
+
requestType: gateway_pb_1.OpenAICompatibilityServiceCreateEmbeddingRequest,
|
|
442
442
|
requestStream: false,
|
|
443
|
-
responseType:
|
|
443
|
+
responseType: gateway_pb_1.OpenAICompatibilityServiceCreateEmbeddingResponse,
|
|
444
444
|
responseStream: false,
|
|
445
445
|
options: {
|
|
446
446
|
_unknownFields: {
|
|
@@ -480,9 +480,9 @@ exports.OpenAICompatibilityServiceDefinition = {
|
|
|
480
480
|
},
|
|
481
481
|
generateImage: {
|
|
482
482
|
name: "GenerateImage",
|
|
483
|
-
requestType:
|
|
483
|
+
requestType: gateway_pb_1.OpenAICompatibilityServiceGenerateImageRequest,
|
|
484
484
|
requestStream: false,
|
|
485
|
-
responseType:
|
|
485
|
+
responseType: gateway_pb_1.OpenAICompatibilityServiceGenerateImageResponse,
|
|
486
486
|
responseStream: false,
|
|
487
487
|
options: {
|
|
488
488
|
_unknownFields: {
|
|
@@ -530,7 +530,7 @@ exports.OpenAICompatibilityServiceDefinition = {
|
|
|
530
530
|
},
|
|
531
531
|
},
|
|
532
532
|
};
|
|
533
|
-
exports.AnthropicCompatibilityServiceServiceName = "weaveapi.
|
|
533
|
+
exports.AnthropicCompatibilityServiceServiceName = "weaveapi.gateway.v1.AnthropicCompatibilityService";
|
|
534
534
|
class AnthropicCompatibilityServiceClientImpl {
|
|
535
535
|
constructor(rpc, opts) {
|
|
536
536
|
this.service = (opts === null || opts === void 0 ? void 0 : opts.service) || exports.AnthropicCompatibilityServiceServiceName;
|
|
@@ -539,26 +539,26 @@ class AnthropicCompatibilityServiceClientImpl {
|
|
|
539
539
|
this.StreamMessages = this.StreamMessages.bind(this);
|
|
540
540
|
}
|
|
541
541
|
CreateMessage(request) {
|
|
542
|
-
const data =
|
|
542
|
+
const data = gateway_pb_1.AnthropicCompatibilityServiceCreateMessageRequest.encode(request).finish();
|
|
543
543
|
const promise = this.rpc.request(this.service, "CreateMessage", data);
|
|
544
|
-
return promise.then((data) =>
|
|
544
|
+
return promise.then((data) => gateway_pb_1.AnthropicCompatibilityServiceCreateMessageResponse.decode(new wire_1.BinaryReader(data)));
|
|
545
545
|
}
|
|
546
546
|
StreamMessages(request) {
|
|
547
|
-
const data =
|
|
547
|
+
const data = gateway_pb_1.AnthropicCompatibilityServiceStreamMessagesRequest.encode(request).finish();
|
|
548
548
|
const result = this.rpc.serverStreamingRequest(this.service, "StreamMessages", data);
|
|
549
|
-
return result.pipe((0, operators_1.map)((data) =>
|
|
549
|
+
return result.pipe((0, operators_1.map)((data) => gateway_pb_1.AnthropicCompatibilityServiceStreamMessagesResponse.decode(new wire_1.BinaryReader(data))));
|
|
550
550
|
}
|
|
551
551
|
}
|
|
552
552
|
exports.AnthropicCompatibilityServiceClientImpl = AnthropicCompatibilityServiceClientImpl;
|
|
553
553
|
exports.AnthropicCompatibilityServiceDefinition = {
|
|
554
554
|
name: "AnthropicCompatibilityService",
|
|
555
|
-
fullName: "weaveapi.
|
|
555
|
+
fullName: "weaveapi.gateway.v1.AnthropicCompatibilityService",
|
|
556
556
|
methods: {
|
|
557
557
|
createMessage: {
|
|
558
558
|
name: "CreateMessage",
|
|
559
|
-
requestType:
|
|
559
|
+
requestType: gateway_pb_1.AnthropicCompatibilityServiceCreateMessageRequest,
|
|
560
560
|
requestStream: false,
|
|
561
|
-
responseType:
|
|
561
|
+
responseType: gateway_pb_1.AnthropicCompatibilityServiceCreateMessageResponse,
|
|
562
562
|
responseStream: false,
|
|
563
563
|
options: {
|
|
564
564
|
_unknownFields: {
|
|
@@ -599,9 +599,9 @@ exports.AnthropicCompatibilityServiceDefinition = {
|
|
|
599
599
|
},
|
|
600
600
|
streamMessages: {
|
|
601
601
|
name: "StreamMessages",
|
|
602
|
-
requestType:
|
|
602
|
+
requestType: gateway_pb_1.AnthropicCompatibilityServiceStreamMessagesRequest,
|
|
603
603
|
requestStream: false,
|
|
604
|
-
responseType:
|
|
604
|
+
responseType: gateway_pb_1.AnthropicCompatibilityServiceStreamMessagesResponse,
|
|
605
605
|
responseStream: true,
|
|
606
606
|
options: {
|
|
607
607
|
_unknownFields: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "weave-typescript",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.42.7",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@types/node": "^25.2.0",
|
|
33
33
|
"@types/pg": "^8.15.5",
|
|
34
|
-
"@typescript/native-preview": "7.0.0-dev.
|
|
34
|
+
"@typescript/native-preview": "7.0.0-dev.20260513.1"
|
|
35
35
|
},
|
|
36
36
|
"scripts": {
|
|
37
37
|
"test": "node tools/sqlcgen.test.js",
|