@apicity/openai 0.17.0 → 0.18.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/README.md CHANGED
@@ -11,7 +11,7 @@ Realtime voice over WebRTC: `openai.post.v1.realtime.calls({ sdp, session })` se
11
11
  Runtime dependencies:
12
12
 
13
13
  - `ws@^8.21.0` — WebSocket client for the Realtime server control channel in `@apicity/openai/realtime`
14
- - `zod@^4.4.3` — request schemas attached to every POST endpoint as `.schema`
14
+ - `zod@^4.6.6` — request schemas attached to every POST endpoint as `.schema`
15
15
 
16
16
  ## Installation
17
17
 
package/dist/src/zod.d.ts CHANGED
@@ -159,9 +159,9 @@ export declare const OpenAiEmbeddingRequestSchema: z.ZodObject<{
159
159
  user: z.ZodOptional<z.ZodString>;
160
160
  }, z.core.$strip>;
161
161
  export declare const OpenAiImageEditRequestSchema: z.ZodObject<{
162
- image: z.ZodUnion<readonly [z.ZodCustom<Blob, Blob>, z.ZodArray<z.ZodCustom<Blob, Blob>>]>;
162
+ image: z.ZodUnion<readonly [z.ZodInstanceOf<Blob>, z.ZodArray<z.ZodInstanceOf<Blob>>]>;
163
163
  prompt: z.ZodString;
164
- mask: z.ZodOptional<z.ZodCustom<Blob, Blob>>;
164
+ mask: z.ZodOptional<z.ZodInstanceOf<Blob>>;
165
165
  model: z.ZodOptional<z.ZodString>;
166
166
  n: z.ZodOptional<z.ZodNumber>;
167
167
  size: z.ZodOptional<z.ZodEnum<{
@@ -232,7 +232,7 @@ export declare const OpenAiImageGenerationRequestSchema: z.ZodObject<{
232
232
  user: z.ZodOptional<z.ZodString>;
233
233
  }, z.core.$strip>;
234
234
  export declare const OpenAiImageVariationRequestSchema: z.ZodObject<{
235
- image: z.ZodCustom<Blob, Blob>;
235
+ image: z.ZodInstanceOf<Blob>;
236
236
  model: z.ZodOptional<z.ZodString>;
237
237
  n: z.ZodOptional<z.ZodNumber>;
238
238
  response_format: z.ZodOptional<z.ZodEnum<{
@@ -272,7 +272,7 @@ export declare const OpenAiSpeechRequestSchema: z.ZodObject<{
272
272
  instructions: z.ZodOptional<z.ZodString>;
273
273
  }, z.core.$strip>;
274
274
  export declare const OpenAiTranscribeRequestSchema: z.ZodObject<{
275
- file: z.ZodCustom<Blob, Blob>;
275
+ file: z.ZodInstanceOf<Blob>;
276
276
  model: z.ZodString;
277
277
  response_format: z.ZodOptional<z.ZodString>;
278
278
  language: z.ZodOptional<z.ZodString>;
@@ -280,7 +280,7 @@ export declare const OpenAiTranscribeRequestSchema: z.ZodObject<{
280
280
  temperature: z.ZodOptional<z.ZodNumber>;
281
281
  }, z.core.$strip>;
282
282
  export declare const OpenAiTranslateRequestSchema: z.ZodObject<{
283
- file: z.ZodCustom<Blob, Blob>;
283
+ file: z.ZodInstanceOf<Blob>;
284
284
  model: z.ZodString;
285
285
  response_format: z.ZodOptional<z.ZodString>;
286
286
  prompt: z.ZodOptional<z.ZodString>;
@@ -318,7 +318,7 @@ export declare const OpenAiModerationRequestSchema: z.ZodObject<{
318
318
  model: z.ZodOptional<z.ZodString>;
319
319
  }, z.core.$strip>;
320
320
  export declare const OpenAiFileUploadRequestSchema: z.ZodObject<{
321
- file: z.ZodCustom<Blob, Blob>;
321
+ file: z.ZodInstanceOf<Blob>;
322
322
  purpose: z.ZodEnum<{
323
323
  "fine-tune": "fine-tune";
324
324
  assistants: "assistants";
@@ -2665,13 +2665,13 @@ export declare const OpenAiVectorStoreCreateRequestSchema: z.ZodObject<{
2665
2665
  export declare const OpenAiVectorStoreSearchComparisonFilterSchema: z.ZodObject<{
2666
2666
  key: z.ZodString;
2667
2667
  type: z.ZodEnum<{
2668
- in: "in";
2669
2668
  eq: "eq";
2670
2669
  ne: "ne";
2671
2670
  gt: "gt";
2672
2671
  gte: "gte";
2673
2672
  lt: "lt";
2674
2673
  lte: "lte";
2674
+ in: "in";
2675
2675
  nin: "nin";
2676
2676
  }>;
2677
2677
  value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apicity/openai",
3
- "version": "0.17.0",
3
+ "version": "0.18.0",
4
4
  "description": "OpenAI / GPT provider for chat completions.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -30,7 +30,7 @@
30
30
  },
31
31
  "dependencies": {
32
32
  "ws": "^8.21.0",
33
- "zod": "^4.4.3"
33
+ "zod": "^4.6.6"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@types/ws": "^8.18.1"