@vellumai/vellum-gateway 0.3.23 → 0.3.25

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vellumai/vellum-gateway",
3
- "version": "0.3.23",
3
+ "version": "0.3.25",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "dev": "bun run --watch src/index.ts",
@@ -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 required", () => {
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(true);
174
+ expect(ingressMemberBlockPost?.requestBody?.required).toBe(false);
175
175
  });
176
176
  });
package/src/schema.ts CHANGED
@@ -955,7 +955,7 @@ export function buildSchema(): Record<string, unknown> {
955
955
  },
956
956
  ],
957
957
  requestBody: {
958
- required: true,
958
+ required: false,
959
959
  content: {
960
960
  "application/json": {
961
961
  schema: { type: "object", additionalProperties: true },