@vellumai/vellum-gateway 0.3.24 → 0.3.26
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/package.json +1 -1
- package/src/__tests__/schema.test.ts +2 -2
- package/src/index.ts +2 -0
package/package.json
CHANGED
|
@@ -158,7 +158,7 @@ describe("buildSchema()", () => {
|
|
|
158
158
|
expect(telegramDeliver.anyOf).toContainEqual({ required: ["chatAction"] });
|
|
159
159
|
});
|
|
160
160
|
|
|
161
|
-
test("ingress member block request body is
|
|
161
|
+
test("ingress member block request body is optional", () => {
|
|
162
162
|
const schema = buildSchema() as {
|
|
163
163
|
paths: Record<string, {
|
|
164
164
|
post?: {
|
|
@@ -171,6 +171,6 @@ describe("buildSchema()", () => {
|
|
|
171
171
|
|
|
172
172
|
const ingressMemberBlockPost = schema.paths["/v1/ingress/members/{memberId}/block"]?.post;
|
|
173
173
|
expect(ingressMemberBlockPost).toBeDefined();
|
|
174
|
-
expect(ingressMemberBlockPost?.requestBody?.required).toBe(
|
|
174
|
+
expect(ingressMemberBlockPost?.requestBody?.required).toBe(false);
|
|
175
175
|
});
|
|
176
176
|
});
|
package/src/index.ts
CHANGED
|
@@ -214,6 +214,7 @@ function main() {
|
|
|
214
214
|
|
|
215
215
|
const server = Bun.serve({
|
|
216
216
|
port: config.port,
|
|
217
|
+
idleTimeout: 0,
|
|
217
218
|
websocket: {
|
|
218
219
|
open(ws) {
|
|
219
220
|
if (isBrowserRelaySocketData(ws.data)) {
|
|
@@ -248,6 +249,7 @@ function main() {
|
|
|
248
249
|
return Response.json({ error: "Internal server error" }, { status: 500 });
|
|
249
250
|
},
|
|
250
251
|
async fetch(req, svr) {
|
|
252
|
+
svr.timeout(req, 1800);
|
|
251
253
|
const url = new URL(req.url);
|
|
252
254
|
|
|
253
255
|
if (url.pathname === "/healthz") {
|